-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Lambda functions in fluent API calls should indent further #970
Comments
At first glance, this is ok to have. |
I see what you mean.
will end up becoming
Which is a bit jarring. Maybe it should only apply when it's otherwise aligned with the dot. It only really looks weird when it's aligned, so that might work. Not sure how easy that is to check for. |
Nice! Thanks! |
I propose we ... indent lambda functions in fluent API calls further.
Examples
Currently, it looks something like this:
Or in a more practical scenario:
.AddOpenIdConnect
and.AddAuthentication
have the same indentation as the content of the function, which makes it harder to understand where the first call ends.The indentation is nicer when the inner expression is a record, which I think should be a similar scenario visually:
I think it should look like either:
or:
Pros and Cons
Pros:
Cons:
Extra information
Estimated cost (XS, S, M, L, XL, XXL): M
Affidavit (please submit!)
Please tick this by placing a cross in the box:
Please tick all that apply:
The text was updated successfully, but these errors were encountered: