Skip to content

Linter rules such as enable_null_safety don't show diagnostic anymore #59869

Open
@FMorschel

Description

@FMorschel

My pubspec.yaml:

environment:
  sdk: ^3.6.0

I'm creating a new flutter project with the latest stable.

I saw the following doesn't have any warnings:

linter:
  rules:
    - enable_null_safety

I'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.0

And the diagnostic for always_require_non_null_named_parameters did show up. So I guess something is not working as intended.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A 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.linter-false-negativetype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions