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

Don't have dedented method call if there is a long chain #1154

Closed
belav opened this issue Jan 27, 2024 · 0 comments · Fixed by #1222
Closed

Don't have dedented method call if there is a long chain #1154

belav opened this issue Jan 27, 2024 · 0 comments · Fixed by #1222
Milestone

Comments

@belav
Copy link
Owner

belav commented Jan 27, 2024

o.Property.CallMethod(
    someParameter_____________________________,
    someParameter_____________________________
)
    .CallMethod()
    .CallMethod();

// should be

o.Property.CallMethod(
        someParameter_____________________________,
        someParameter_____________________________
    )
    .CallMethod()
    .CallMethod();

But in cases like this, do keep it dedented

this.Method(
    someParameter__________________________________,
    someParameter__________________________________
);

// consistent with

CallMethod(
    someParameter__________________________________,
    someParameter__________________________________
);

It seems like changing this to Doc.Indent mostly gets us there - InvocationExpression.cs

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

Successfully merging a pull request may close this issue.

1 participant