Skip to main content

RCS0053: Fix formatting of a list

Properties

PropertyValue
Default Severitydisabled by default
Minimum language version-

Summary

  This analyzer:
  • fixes indentation of argument/parameter list and similar lists
  • formats each item in a multi-line list on a separate line

Following formats are considered as valid (for a parameter list):

void M(object x, object y)
{
}
void M(
object x, object y)
{
}
void M(
object x,
object y)
{
}

Examples

Example #1

diagnostic.cs
void M(
object x,
object y)
{
}
fix.cs
void M(
object x,
object y)
{
}

Example #2

diagnostic.cs
void M(object x,
object y)
{
}
fix.cs
void M(
object x,
object y)
{
}

Example #3

diagnostic.cs
void M(object x,
object y)
{
}
fix.cs
void M(
object x,
object y)
{
}

Example #4

diagnostic.cs
void M(
object x,
object y, object z)
{
}
fix.cs
void M(
object x,
object y,
object z)
{
}

Applies to