Skip to main content

RCS0011: Add/remove blank line between single-line accessors

Properties

PropertyValue
Default Severitydisabled by default
Minimum language version-

Examples

Example #1

diagnostic.cs
string P
{
get { return _p; }
set { _p = value; }
}
fix.cs
string P
{
get { return _p; }

set { _p = value; }
}

Configuration

info

Option roslynator_blank_line_between_single_line_accessors is required to be set for this analyzer to work.

.editorconfig
# Add/remove blank line between single-line accessors
roslynator_blank_line_between_single_line_accessors = true|false

Applies to