-
Notifications
You must be signed in to change notification settings - Fork 29.2k
Closed
Labels
toolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
flutter analyze --flutter-repo
currently does not analyze the analysis_options.yaml
at the root of the repository. This caused us to miss some warnings about deprecated lints in that file. The command should be updated to analyze that file as well since it is part of the repository and it may have issues reported by the analyzer.
Steps to repro the failure to report deprecated lints in that file:
- Add the deprecated lint
iterable_contains_unrelated_type
to the analysis_options.yaml at the root of the repository. - Verify that the analyzer reports a deprecated lint when analyzing this specific file alone:
flutter analyze analysis_options.yaml
. - Run
flutter analyze --flutter-repo
and observe that no deprecated lint is reported.
Expected Output:
info • 'iterable_contains_unrelated_type' is deprecated and should be replaced by 'collection_methods_unrelated_type' • analysis_options.yaml:113:7 •
deprecated_lint_hint_with_replacement
Actual Output: nothing reported.
Metadata
Metadata
Assignees
Labels
toolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.