Skip to content

REFL0009 fires when result is checked with 'is not null' #297

Open
@manfred-brands

Description

@manfred-brands

GetXAnalyzer.IsNullCheck doesn't recognize is not null.

The first code fragment raises REFL0009:

var property = type.GetProperty(PropertyName);
if (suppressionsProperty is not null)

The second does not:

var property = type.GetProperty(PropertyName);
if (suppressionsProperty != null)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions