Skip to content

unnecessary_non_null_assertion for isNull/isNotNull matcher #61908

@FMorschel

Description

@FMorschel

I'm proposing we have something like unnecessary_non_null_assertion (or even use this diagnostic) for the cases where the isNotNull/isNull matcher is being used, but makes no sense. Probably a leftover from some old API that is not null anymore.

Of course, the isNull tests would fail, but this would help users migrating the tests to the new api.

CC @bwilkerson @srawlins @stereotype441 @natebosch

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions