Permalink
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (39 sloc) 906 Bytes

RCS1003: Add braces to if-else (when expression spans over multiple lines)

Property Value
Id RCS1003
Category Style
Default Severity Info
Enabled by Default
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

if (condition) // RCS1003
    WhenTrue(
        x,
        y);
else
    WhenFalse(
        x,
        y);

Code with Fix

if (condition)
{
    WhenTrue(
        x,
        y);
}
else
{
    WhenFalse(
        x,
        y);
}

See Also

(Generated with DotMarkdown)