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
Code below is formatted with IntelliJ IDEA default formatting and should be accepted by KtLint without changes:
fun foo1() = "Sum of uneven numbers = ${ listOf(1, 2, 3) .filter { it % 2 == 0 } .sum() }" fun foo2() = "Sum of uneven numbers = ${ listOf(1, 2, 3) .filter { it % 2 == 0 } .sum() }"
Klint 0.46.1 reports following violations:
$ ktlint-0.46.1 --relative src/main/kotlin/Foo.kt:3:1: Unexpected indentation (8) (should be 4) (indent) src/main/kotlin/Foo.kt:4:1: Unexpected indentation (12) (should be 8) (indent) src/main/kotlin/Foo.kt:5:1: Unexpected indentation (12) (should be 8) (indent) src/main/kotlin/Foo.kt:9:1: Unexpected indentation (4) (should be 0) (indent) src/main/kotlin/Foo.kt:10:1: Unexpected indentation (8) (should be 4) (indent) src/main/kotlin/Foo.kt:11:1: Unexpected indentation (8) (should be 4) (indent)
which result in code:
The text was updated successfully, but these errors were encountered:
Solved by #1682
Sorry, something went wrong.
Closed by #1682
Successfully merging a pull request may close this issue.
Expected Behavior
Code below is formatted with IntelliJ IDEA default formatting and should be accepted by KtLint without changes:
Observed Behavior
Klint 0.46.1 reports following violations:
which result in code:
Your Environment
The text was updated successfully, but these errors were encountered: