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

RCS1028: Format switch section's statement on a separate line

Property Value
Id RCS1028
Category Formatting
Default Severity Info
Enabled by Default -
Supports Fade-Out -
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

switch (s)
{
    case "a": return Foo(); // RCS1028
    case "b": return Bar();
}

Code with Fix

switch (s)
{
    case "a":
        return Foo();
    case "b":
        return Bar();
}

See Also

(Generated with DotMarkdown)