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
for (i in start..<start + count)
Should be able to format valid Kotlin for loop expression
for (i in start..<start + count) { }
Ktlint failed to parse file
./gradlew :backend:ktlintFormat
The debug output was a bit too much, so could not put them here.
.editorconfig
The text was updated successfully, but these errors were encountered:
I cannot reproduce a problem with a for loop like this. See output below:
$ ktlint-1.5.0 --stdin 17:24:27.694 [main] INFO com.pinterest.ktlint.cli.internal.KtlintCommandLine -- Enable default patterns [**/*.kt, **/*.kts] fun foo() { val start = 1 val count = 10 for (i in start..<start + count) { bar() // Wrongly indented } } fun bar() {} <stdin>:5:1: Unexpected indentation (4) (should be 8) (standard:indent) Summary error count (descending) by rule: standard:indent: 1
Sorry, something went wrong.
No branches or pull requests
Expected Behavior
Should be able to format valid Kotlin for loop expression
Observed Behavior
Ktlint failed to parse file
./gradlew :backend:ktlintFormat
The debug output was a bit too much, so could not put them here.
Steps to Reproduce
Your Environment
.editorconfig
settingsThe text was updated successfully, but these errors were encountered: