Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 622 Bytes

RCS1136.md

File metadata and controls

39 lines (29 loc) · 622 Bytes

RCS1136: Merge switch sections with equivalent content

Property Value
Id RCS1136
Category Simplification
Severity Hidden

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)