Skip to main content

RCS0055: Fix formatting of a binary expression chain

Properties

PropertyValue
Default Severitydisabled by default
Minimum language version-

Summary

This analyzer:

  • fixes indentation of multi-line binary expression chain
  • formats each expression on a separate line

Examples

Example #1

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

Example #2

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

Applies to