Analysis options bugged after upgrading from Flutter 3.22.0-0.2.pre to 3.23.0-0.1.pre #55975
Labels
analyzer-analysis-options
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P3
A lower priority bug or feature request
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
For the last 6 moths I have been using this guide to essentially include all linter rules and then override the conflicts and tune the rules to my taste. I have made this simple little setup into a package that I host on a private GitHub repo and just update the all_linter_rules.yaml file whenever new rules are added, as well as make sure all conflicts are resolved. With the 3.23 beta I am encountering a new error even though my overall methods have remained consistent.
I am now getting warnings about conflicting linter rules in my
all_linter_rules.yaml
file even though conflicts are properly overridden and theincluded_file_warning: ignore
analyzer error is properly set. The weird part is that when I reference my custom analysis packages'analysis_options.yaml
locally the errors are not present. Only when referencing theanalysis_options.yaml
using a package import, from git hosted or local path, do these warnings appear.nv_analysis package files
Project files
pubspec.yaml:
analysis_options.yaml:
Expected results
The expected results is that I should be able to
include: package:nv_analysis/analysis_options.yaml
and not receive conflicts from theall_lint_rules.yaml
file since they have been resolved using overrides and even supposedly silenced usingincluded_file_warning: ignore
.Actual results
My best guess of what is actually happening is for some reason the
included_file_warning: ignore
is not being applied to subsequent inclusions in yaml files. This is resulting in linter rules showing up as conflicts. Interestingly this is only reproducible when importing as a package.Code sample
Attempt to import this analysis package in your projects analysis_options.yaml:
Screenshots or Video
No response
Logs
No response
Flutter Doctor output
Doctor output
Originally posted by @cabaucom376 in flutter/flutter#149981
The text was updated successfully, but these errors were encountered: