Permalink
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (33 sloc) 831 Bytes

RCS1111: Add braces to switch section with multiple statements

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

Example

Code with Diagnostic

switch (s)
{
    case "a":
        Foo(); // RCS1111
        break;
}

Code with Fix

switch (s)
{
    case "a":
        {
            Foo();
            break;
        }
}

See Also

(Generated with DotMarkdown)