Permalink
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (35 sloc) 895 Bytes

RCS1070: Remove redundant default switch section

Property Value
Id RCS1070
Category Redundancy
Default Severity Hidden
Enabled by Default
Supports Fade-Out
Supports Fade-Out Analyzer -

Example

Code with Diagnostic

switch (s)
{
    case "a":
        return true;
    case "b":
        return false;
    default: // RCS1070
        break;
}

Code with Fix

switch (s)
{
    case "a":
        return true;
    case "b":
        return false;
}

See Also

(Generated with DotMarkdown)