-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
IndentationRule uses wrong continuation intendation #379
Comments
@vanniktech I believe since the Kotlin Android styledocs removed any mention of continuation indent, the indentation formatter does not use a separate continuation intent. It will simply do a + |
It really should do a multiplication by two. Shouldn't it? |
I haven't seen examples of Kotlin styles using separate rules for continuation indents over normal indents. if you see it in a Google or JetBrains style guide, can you post the link? |
Closing this for now because a continuation indent is not part of the style guide. |
Then ktlint shouldn't flag this, should it? |
i think it flags it because there should be only a single indent, not a special double indent. |
Should not ktlint support this though? At least when specifying the |
Oh, I didn't realize there was a continuation indent size setting for ktlint. Seems like that should be removed, especially if it's not working. |
Ah yeah it got effectively deprecated here #171 (release 0.22) so it should just be removed. |
When using the
--experimental
flag with ktlint 0.31.0 and the following configuration:the following code is flagged:
This is the output:
The indentation should not be 6 though since it's on a new line and should be using continuation indentation which is 8.
The text was updated successfully, but these errors were encountered: