Permalink
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (38 sloc) 888 Bytes

RCS1006: Merge else clause with nested if statement

Property Value
Id RCS1006
Category Simplification
Default Severity Hidden
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer

Example

Code with Diagnostic

if (condition1)
{
    Foo1();
}
else
{ // RCS1006
    if (condition2)
    {
        Foo2();
    }
}

Code with Fix

if (condition1)
{
    Foo1();
}
else if (condition2)
{
    Foo2();
}

See Also

(Generated with DotMarkdown)