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

Excessive indent level with lambda as the only method call argument #669

Closed
NonSpicyBurrito opened this issue May 17, 2022 · 0 comments · Fixed by #673
Closed

Excessive indent level with lambda as the only method call argument #669

NonSpicyBurrito opened this issue May 17, 2022 · 0 comments · Fixed by #673
Labels
Milestone

Comments

@NonSpicyBurrito
Copy link

Foo(() =>
{
    Bar();
    Baz();
});

is currently formatted to:

Foo(
    () =>
    {
        Bar();
        Baz();
    }
);

It is an extra unnecessary level of indentation.

@belav belav added type:enhancement New feature or request area:formatting labels May 18, 2022
belav added a commit that referenced this issue May 21, 2022
@belav belav added this to the 0.17.0 milestone May 22, 2022
belav added a commit that referenced this issue May 23, 2022
* Start of better indent for lamda

closes #669

* Don't forget the test cases

* Only format this way for lambdas with a block

* Trying out simple lambdas with blocks

* Cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants