Sync analysis_options.yaml with flutter/flutter#11823
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the analysis_options.yaml configuration to align with a newer version of the Flutter repository, enabling several linter rules including avoid_final_parameters and unnecessary_underscores. To comply with these new rules, the changes replace multi-underscore unused parameters with single underscores and remove the final keyword from parameter declarations across multiple packages. There are no review comments to address, and no additional feedback is provided.
justinmc
left a comment
There was a problem hiding this comment.
LGTM 👍 . Thank you for the help here!
|
Looks like there's still some analyzer errors: |
|
Version/changelog override: the source changes here are clearly no-ops for runtime behavior, so we'll skip releasing for this, and they aren't interesting to clients so don't need to be in the changelog. |
|
(I know this is currently failing the autoformat check; I didn't bother formatting since I want to land #11692 first and then update this, rather than landing this first and causing conflicts there that require yet another round of reformatting the entire repo.) |
Re-syncs the analysis options from flutter/packages to pick up flutter/packages#11692 and flutter/packages#11823 - Runs `format` for the 100-column limit - Runs `fix` to auto-fix a couple of `final` parameters. No manual changes other than `analysis_options.yaml` itself.
|
Looks like a single analyzer failure: And a test failure in the pigeon package. I don't know what that's about. |
|
The pigeon failure is a known flake, unrelated to the PR. |
|
autosubmit label was removed for flutter/packages/11823, because - The status or check suite Linux repo_checks has failed. Please fix the issues identified (or deflake) before re-applying this label. |
|
I just re-ran the failed test. It was happening in a package that was not touched by this PR. Not sure if it's a flake but worth a shot. |
|
Yeah, I've run it several times. Same with another PR I have open right now. I filed flutter/flutter#187563 this morning, and I am about to start seeing if I can fix it. |
|
Seems like #11841 did the trick 🎉 |
|
Great, I'm updating #11669! |
…r#187612) flutter/packages@03352b5...61bdbb4 2026-06-04 stuartmorgan@google.com [tool] Use `flutter` for pub commands when examples use Flutter (flutter/packages#11830) 2026-06-04 stuartmorgan@google.com Sync analysis_options.yaml with flutter/flutter (flutter/packages#11823) 2026-06-04 stuartmorgan@google.com [path_provider] Create temp dir in tests if needed (flutter/packages#11841) 2026-06-04 jeff.ward@datadoghq.com [webview] Add new method for cross plugin webview access (flutter/packages#11714) 2026-06-04 47866232+chunhtai@users.noreply.github.com [ci] Renames the override post-release label for batch release (flutter/packages#11835) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Pulls in changes from flutter/flutter's analysis_options.yaml since the last since at the end of 2023. - `invalid_runtime_check_with_js_interop_types` is disabled for now; see flutter/flutter#187454 - `dart fix --apply` has been run on all packages, which auto-fixed a lot of cases of `unnecessary_underscores`, and a handful of `avoid_final_parameters`
…r#187612) flutter/packages@03352b5...61bdbb4 2026-06-04 stuartmorgan@google.com [tool] Use `flutter` for pub commands when examples use Flutter (flutter/packages#11830) 2026-06-04 stuartmorgan@google.com Sync analysis_options.yaml with flutter/flutter (flutter/packages#11823) 2026-06-04 stuartmorgan@google.com [path_provider] Create temp dir in tests if needed (flutter/packages#11841) 2026-06-04 jeff.ward@datadoghq.com [webview] Add new method for cross plugin webview access (flutter/packages#11714) 2026-06-04 47866232+chunhtai@users.noreply.github.com [ci] Renames the override post-release label for batch release (flutter/packages#11835) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC flutter-ecosystem@google.com on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Pulls in changes from flutter/flutter's analysis_options.yaml since the last since at the end of 2023.
invalid_runtime_check_with_js_interop_typesis disabled for now; see [various]invalid_runtime_check_with_js_interop_typesviolations in web packages flutter#187454dart fix --applyhas been run on all packages, which auto-fixed a lot of cases ofunnecessary_underscores, and a handful ofavoid_final_parameters