Skip to content

⬆️ Support analyzer 12 and 13 - #46

Merged
zmtzawqlp merged 4 commits into
masterfrom
chore/analyzer-12-compat
Jun 4, 2026
Merged

zmtzawqlp merged 4 commits into
masterfrom
chore/analyzer-12-compat

Conversation

@AlexV525

@AlexV525 AlexV525 commented Jun 3, 2026

Copy link
Copy Markdown
Member

Summary

  • Support analyzer >=12.0.0 <14.0.0.
  • Handle analyzer 13 AST changes for annotation arguments and formal parameters while preserving analyzer 12 support.
  • Allow dart_style versions that match analyzer 12 and analyzer 13.

Test Plan

  • PUB_CACHE=/Users/alex/dev/garages/flutter/.pub-cache dart analyze bin lib test
  • PUB_CACHE=/Users/alex/dev/garages/flutter/.pub-cache dart test
  • PUB_CACHE=/Users/alex/dev/garages/flutter/.pub-cache dart run bin/ff_annotation_route.dart -p example --argument-names --no-arguments-case-sensitive --no-fast-mode --no-g-suffix --null-safety --super-arguments
  • PUB_CACHE=/Users/alex/dev/garages/flutter/.pub-cache dart run bin/ff_annotation_route.dart -p example_fast_mode --super-arguments --null-safety --no-arguments-case-sensitive --fast-mode
  • PUB_CACHE=/Users/alex/dev/garages/flutter/.pub-cache dart run bin/ff_annotation_route.dart -p example1 --super-arguments --null-safety --argument-names
  • PUB_CACHE=/Users/alex/dev/garages/flutter/.pub-cache dart analyze lib/example_route.dart lib/example_routes.dart in example
  • PUB_CACHE=/Users/alex/dev/garages/flutter/.pub-cache dart analyze lib/example_fast_mode_route.dart lib/example_fast_mode_routes.dart in example_fast_mode
  • PUB_CACHE=/Users/alex/dev/garages/flutter/.pub-cache dart analyze lib/example1_route.dart lib/example1_routes.dart in example1
  • Verified analyzer 12.0.0 + dart_style 3.1.8 with temporary overrides
  • Verified analyzer 13.0.0 + dart_style 3.1.9 via dart pub upgrade analyzer dart_style

@AlexV525
AlexV525 requested a review from zmtzawqlp as a code owner June 3, 2026 21:18
@zmtzawqlp
zmtzawqlp merged commit ea3296b into master Jun 4, 2026
1 check passed
@zmtzawqlp
zmtzawqlp deleted the chore/analyzer-12-compat branch June 4, 2026 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants