Permalink
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (32 sloc) 864 Bytes

RCS1136: Merge switch sections with equivalent content

Property Value
Id RCS1136
Category Simplification
Default Severity Hidden
Enabled by Default
Supports Fade-Out
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

switch (s)
{
    case "a":
        break; // RCS1136
    case "b":
        break;
}

Code with Fix

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

See Also

(Generated with DotMarkdown)