Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 64c222d

Browse files
Move custom analysis options into sub-packages (#4603)
When the legacy analysis options were bulk-added to the repository to allow transitioning incrementally to the Flutter analysis options, they were added to top-level plugin groups. This makes it harder to migrate incrementally, and also means that when we add a new sub-package (e.g, a web or desktop implementation) it's automatically using the legacy options. This moves all the legacy option files into each individual package, and updates the allow list for the tool accordingly, so that migration can be done package by package.
1 parent 33968c0 commit 64c222d

File tree

26 files changed

+38
-20
lines changed

26 files changed

+38
-20
lines changed

packages/camera/analysis_options.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: ../../../analysis_options_legacy.yaml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: ../../../analysis_options_legacy.yaml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: ../../../analysis_options_legacy.yaml

packages/camera/camera_web/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ dependencies:
2222
sdk: flutter
2323
flutter_web_plugins:
2424
sdk: flutter
25+
pedantic: ^1.11.1
2526
stream_transform: ^2.0.0
2627

2728
dev_dependencies:
2829
flutter_test:
2930
sdk: flutter
30-
pedantic: ^1.11.1

packages/google_maps_flutter/analysis_options.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: ../../../analysis_options_legacy.yaml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: ../../../analysis_options_legacy.yaml
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include: ../../../analysis_options_legacy.yaml

packages/google_maps_flutter/google_maps_flutter_web/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ dependencies:
2424
google_maps_flutter_platform_interface: ^2.1.2
2525
google_maps: ^5.2.0
2626
meta: ^1.3.0
27+
pedantic: ^1.10.0
2728
sanitize_html: ^2.0.0
2829
stream_transform: ^2.0.0
2930

3031
dev_dependencies:
3132
flutter_test:
3233
sdk: flutter
33-
pedantic: ^1.10.0
3434

3535
# The example deliberately includes limited-use secrets.
3636
false_secrets:

0 commit comments

Comments
 (0)