RCS0055: Fix formatting of a binary expression chain
Properties
| Property | Value |
|---|---|
| Default Severity | disabled 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)
{
}