Lints (e.g., prefer_const_constructors) not applied via include: in analysis_options.yaml with Dart SDK 3.7.2 / Flutter 3.29.3 #60652
Labels
area-devexp
For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.
devexp-linter
Issues with the analyzer's support for the linter package
P2
A bug or feature request we're likely to work on
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
Const warnings are not being triggered by the analyzer unless the rules are explicitly added to
analysis_options.yaml
The rules:
If these rules aren't present, then no warnings about missing const keywords appear in the IDE.
This is happening on a fresh flutter project and existing projects on the same machine.
Using
flutter_lints: ^5.0.0
The same behaviour was experienced with
lints: ^5.1.1
usinginclude: package:lints/recommended.yaml
The behaviour has been confirmed running
flutter analyze
and using the Dart Analysis Server through Android StudioOutput of flutter doctor:
Contents of
analysis_options.yaml
:Let me know if you need any more info.
The text was updated successfully, but these errors were encountered: