Closed Rudomitori closed 11 months ago
The new formatting implemented in #1066 have brought several new bugs.
An empty argument list is splitted to several lines if the closing bracket is exactly the 100th character of the line
Input:
private static readonly ModelBinderProviderCollection _providers = CreateDefaultCollection();
Output:
private static readonly ModelBinderProviderCollection _providers = CreateDefaultCollection( );
Expected behavior:
In an argument list with one lambda the closing bracket is moved to the next line if it's exactly the 100th character of the line
It.Is<ExceptionLoggerContext>( c => c.ExceptionContext == expectedContext )
It.Is<ExceptionLoggerContext>(c => c.ExceptionContext == expectedContext )
An argument list with a lambda is incorecctly formatted if the lambda contains other nested argument list with a lambda
this.Where______________________________________( selector: static longName_________________ => { return Method(x => x.Prop); } );
this.Where______________________________________( selector: static longName_________________ => { return Method(x => x.Prop); });
@belav I've fixed the first and third buhs, but I need more time to fix the second
@Rudomitori thanks for taking care of all of these!
The new formatting implemented in #1066 have brought several new bugs.
First
An empty argument list is splitted to several lines if the closing bracket is exactly the 100th character of the line
Input:
Output:
Expected behavior:
Second
In an argument list with one lambda the closing bracket is moved to the next line if it's exactly the 100th character of the line
Input:
Output:
Expected behavior:
Third
An argument list with a lambda is incorecctly formatted if the lambda contains other nested argument list with a lambda
Input:
Output:
Expected behavior: