Skip to main content

RCS0014: Add blank line between switch sections

WARNING

This analyzer is obsolete. Use RCS0061 instead.

Properties

PropertyValue
Default Severitydisabled by default
Minimum language version-

Examples

Example #1

diagnostic.cs
switch (x)
{
case "a":
return A();
case "b":
return B();
}
fix.cs
switch (x)
{
case "a":
return A();

case "b":
return B();
}

Configuration

.editorconfig
# Add/remove blank line between closing brace and switch section
roslynator_blank_line_between_closing_brace_and_switch_section = true|false

Applies to