Skip to main content

RCS0027: Place new line after/before binary operator

Properties

PropertyValue
Default Severitydisabled by default
Minimum language version-

Examples

Example #1

diagnostic.cs
if (x &&
y &&
z)
{
}
fix.cs
if (x
&& y
&& z)
{
}

Configuration

info

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

.editorconfig
# Place new line after/before binary operator
roslynator_binary_operator_new_line = after|before

Applies to