-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
analyzer-technical-debtarea-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.For issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.
Description
Right now, AnalysisOptions
has a bool get lint
property, that dictates whether lint rules should be run. It is used it oh so very few places:
analysis_update_options.dart
, in the legacy protocol; is this ever used? Can we... not?library_analyzer.dart
, which decides whether or not to run lint rules based on this property. Same forpubspec_validator.dart
.dart2wasm
'sdry_run.dart
tool (sets the property totrue
).linter
'stool/checks/driver.dart
andtest_linter
tools (sets the property totrue
).dartdoc
spackage_builder.dart
(sets the property tofalse
, for performance).
It is ill-fitting to put this property on AnalysisOptions, because each use treats it as a global/process-wide setting. It is not a property that can be set in an analysis_options.yaml
file; it is just bolted onto the side.
Setting this property is also done in AnalysisContextCollectionImpl.new
's updateAnalysisOptions4
parameter, in 4, 5. It is manually updated in 1, 3, and 4, by walking all analysis options files found in DriverBasedAnalysisContext.allAnalysisOptions
.
Metadata
Metadata
Assignees
Labels
analyzer-technical-debtarea-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.For issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.