[Analyzer] Lint avoid_classes_with_only_static_members is not working as intended #58439
Labels
analyzer-linter
Issues with the analyzer's support for the linter package
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
linter-false-negative
The lint avoid_classes_with_only_static_members does not work if a class has only static methods.
If I run
flutter analyze
on a file with the example from https://dart-lang.github.io/linter/lints/avoid_classes_with_only_static_members.html, the lint avoid_classes_with_only_static_members is not triggered:However, if I add a static property to the class, the lint triggers as intended.
I'm on MacOS and my Dart version is 2.13.1 (stable).
The text was updated successfully, but these errors were encountered: