We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Seems there's an issue with formatter (version 0.39.0).
In this artificial code example IDEA (Android Studio) formats it as:
fun test() { val result = true && minOf( 1, 2 ) == 2 // this line }
which looks correct.
But ktlint formats it as
(notice, the ) == 2 line is aligned with the whole val and not its method minOf.
) == 2
val
minOf
The key difference is comparison == 2, which breaks the formatting, because ktlint formats it correctly for a similar case with no final comparison:
== 2
fun test() { val result = true && checkNotNull( true, { "test" } ) // this line }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Seems there's an issue with formatter (version 0.39.0).
In this artificial code example IDEA (Android Studio) formats it as:
which looks correct.
But ktlint formats it as
(notice, the
) == 2
line is aligned with the wholeval
and not its methodminOf
.The key difference is comparison
== 2
, which breaks the formatting, because ktlint formats it correctly for a similar case with no final comparison:The text was updated successfully, but these errors were encountered: