Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Foreach formats weird #108

Closed
belav opened this issue Apr 17, 2021 · 2 comments
Closed

Foreach formats weird #108

belav opened this issue Apr 17, 2021 · 2 comments
Labels

Comments

@belav
Copy link
Owner

belav commented Apr 17, 2021

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 belav added type:bug Something isn't working area:formatting labels Apr 17, 2021
@belav
Copy link
Owner Author

belav commented Jul 19, 2021

I believe this is really a problem for #7

@belav
Copy link
Owner Author

belav commented Oct 19, 2021

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 belav closed this as not planned Won't fix, can't repro, duplicate, stale Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant