SonarSource/sonar-dotnet

New Rule T0029: Indent all arguments +4 further than the invocation line

Opened this issue · 0 comments

Coding style:

Method invocation arguments should be placed on the same line only when they are few and simple. Otherwise, they should be placed on separate lines. The first argument should be on a separate line, aligned with a left-most single indentation.

object.MethodName(
    firstArgument,
    x => x.Bar(),
    thirdArgument.Property);

This rule doesn't care about parameter layout, only the incident. Layout is in T0028