csharpier icon indicating copy to clipboard operation
csharpier copied to clipboard

Foreach formats weird

Open belav opened this issue 3 years ago • 2 comments

class ClassName
{
    void MethodName()
    {
        foreach (
            var file in new DirectoryInfo(
                @"C:\Projects\csharpier-repos"
            ).GetFilesssssssssssssssssss()
        ) {
            return;
        }
    }
}
// should be
class ClassName
{
    void MethodName()
    {
        foreach (
            var file in new DirectoryInfo(@"C:\Projects\csharpier-repos")
                .GetFilesssssssssssssssssss()
        ) {
            return;
        }
    }
}

belav avatar Apr 17 '21 21:04 belav

I believe this is really a problem for #7

belav avatar Jul 19 '21 15:07 belav

This is kind of an edge case of #451 Constructors aren't an InvocationExpression, but it can start a chain of them and we should break on the .GetFilessssssss first

belav avatar Oct 19 '21 01:10 belav