Closed vanniktech closed 5 years ago
@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 +indent_size
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 continuation_indent_size
.
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 https://github.com/pinterest/ktlint/issues/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.