-
Notifications
You must be signed in to change notification settings - Fork 506
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
Does not match Kotlin code style for Chained Wrapping Calls #171
Comments
Hi Scott. |
@shyiko The kotlin style guide isn't that continuation indents are the same as normal indents, is it? It's just in the case of chained styles that the continuation indent isn't used, right? |
@shyiko Did that make sense? Here is what the style guidelines say:
You are suggesting we make the The Android style guidelines are that continuation indents are still twice the normal indent:
Do you see what I'm saying? What should I be doing in this case? |
Sure. It does make sense. It's going to be fixed in the next release (this is also why I haven't closed the ticket). Having said that, Coding Conventions do not mention continuation indent (at all), which means the default (in form of I'd say stick with the defaults. All this |
Fixed in 0.22.0. |
I have the following code:
This matches the style described by the Kotlin Style Guide: https://kotlinlang.org/docs/reference/coding-conventions.html#chained-call-wrapping
ktlint doesn't match the
with a single indent
part of the style guidelines for chained call wrapping.Here is my
.editorconfig
:Here is my error when running ktlint:
According to the style guideline, an indent of 4 is correct, but it seems ktlint wants a continuation indent.
The text was updated successfully, but these errors were encountered: