Skip to main content

RCS0054: Fix formatting of a call chain

Properties

PropertyValue
Default Severitydisabled by default
Minimum language version-

Summary

This analyzer:

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

Examples

Example #1

diagnostic.cs
return [|x.M1()
.M2().M3()|];
fix.cs
return [|x.M1()
.M2()
.M3()|];

Example #2

diagnostic.cs
return [|x.M1()
.M2()
.M3()|];
fix.cs
return [|x.M1()
.M2()
.M3()|];

Applies to