Permalink
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (31 sloc) 781 Bytes

RCS1004: Remove braces from if-else

Property Value
Id RCS1004
Category Style
Default Severity Hidden
Enabled by Default -
Supports Fade-Out -
Supports Fade-Out Analyzer

Example

Code with Diagnostic

if (condition) // RCS1004
{
    WhenTrue();
}
else
{
    WhenFalse();
}

Code with Fix

if (condition)
    WhenTrue();
else
    WhenFalse();

See Also

(Generated with DotMarkdown)