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? 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
IntelliJ with official Kotlin code style formats the following code like this:
val list = listOf<Boolean>() fun test() { if (list.all { it == true } ) { } }
ktlint complains about wrong indentation:
test.kt:4:1 Unexpected indentation (12) (should be 8) (indent) test.kt:5:1 Unexpected indentation (8) (should be 4) (indent)
ktlintFormat changes the code to:
The text was updated successfully, but these errors were encountered:
@miikeat would you be able to try with the latest snapshot and see if you're still getting this issue?
Sorry, something went wrong.
This problem still occurs with latest snapshot.
Solved by #1682
Closed by #1682
Successfully merging a pull request may close this issue.
Expected Behavior
IntelliJ with official Kotlin code style formats the following code like this:
Observed Behavior
ktlint complains about wrong indentation:
ktlintFormat changes the code to:
Your Environment
The text was updated successfully, but these errors were encountered: