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
Trying to format the following code. Expected no errors.
package test class PropertyA class PropertyB class PropertyC fun someFunction(a: PropertyA, b: PropertyB, c: PropertyC): String = TODO() fun main(args: Array<String>) { if (someFunction( PropertyA(), PropertyB(), PropertyC() ) == "ABC" ) { TODO() } }
ktlintFormat task fails with the following message
> Task :ktlintMainSourceSetFormat FAILED /Users/me/IdeaProjects/test/src/main/kotlin/main.kt:11:13: Unexpected indentation (expected 8, actual 12) /Users/me/IdeaProjects/test/src/main/kotlin/main.kt:12:17: Unexpected indentation (expected 8, actual 12) /Users/me/IdeaProjects/test/src/main/kotlin/main.kt:14:1: Unexpected indentation (expected 8, actual 12) /Users/me/IdeaProjects/test/src/main/kotlin/main.kt:15:12: Unexpected indentation (expected 4, actual 8)
ktlintCheck task produces following errors:
> Task :ktlintMainSourceSetCheck FAILED /Users/me/IdeaProjects/test/src/main/kotlin/main.kt:11:1: Unexpected indentation (8) (should be 12) /Users/me/IdeaProjects/test/src/main/kotlin/main.kt:12:1: Unexpected indentation (8) (should be 12) /Users/me/IdeaProjects/test/src/main/kotlin/main.kt:13:1: Unexpected indentation (8) (should be 12) /Users/me/IdeaProjects/test/src/main/kotlin/main.kt:14:1: Unexpected indentation (4) (should be 8)
It seem to be formatted in continuation inden 8:
The text was updated successfully, but these errors were encountered:
if
Successfully merging a pull request may close this issue.
Expected Behavior
Trying to format the following code. Expected no errors.
Observed Behavior
ktlintFormat task fails with the following message
ktlintCheck task produces following errors:
It seem to be formatted in continuation inden 8:
Steps to Reproduce
Your Environment
The text was updated successfully, but these errors were encountered: