Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (28 sloc) 525 Bytes

RCS1126: Add braces to if-else

Property Value
Id RCS1126
Category Style
Severity None

Example

Code with Diagnostic

if (condition)
    Foo(); // RCS1126
else
    Bar();

Code with Fix

if (condition)
{
    Foo();
}
else
{
    Bar();
}

See Also

(Generated with DotMarkdown)