Permalink
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (30 sloc) 826 Bytes

RCS1215: Expression is always equal to true/false

Property Value
Id RCS1215
Category Redundancy
Default Severity Warning
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -

Examples

Code with Diagnostic

uint i = 0;

// ...

if (i >= 0) // RCS1215
{
}

Code with Diagnostic

var items = new List<object>();

// ...


if (items.Count < 0) // RCS1215
{
}

See Also

(Generated with DotMarkdown)