-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onanalyzer-analysis-optionsarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.linter-false-negativeIssues related to lint rules that fail to report a problem.Issues related to lint rules that fail to report a problem.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)
Description
My pubspec.yaml:
environment:
sdk: ^3.6.0I'm creating a new flutter project with the latest stable.
I saw the following doesn't have any warnings:
linter:
rules:
- enable_null_safetyI'd expect this to give a warning as is not needed. This is on the lint docs:
NOTE: This rule is removed in Dart 3.0.0; it is no longer functional.
Some other rules such as always_require_non_null_named_parameters are also not showing any diagnostics.
Tested by changing my pubspec.yaml to:
environment:
sdk: ^3.3.0And the diagnostic for always_require_non_null_named_parameters did show up. So I guess something is not working as intended.
Metadata
Metadata
Assignees
Labels
P2A bug or feature request we're likely to work onA bug or feature request we're likely to work onanalyzer-analysis-optionsarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.linter-false-negativeIssues related to lint rules that fail to report a problem.Issues related to lint rules that fail to report a problem.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)Incorrect behavior (everything from a crash to more subtle misbehavior)