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
val y = 5 val x = """ $y """.trimIndent()
ktlint --experimental --format is a no-op after at most one invocation.
ktlint --experimental --format
ktlint always adds 6 additional space characters in front of $y, i.e. running ktlint n times will prepend 6*n spaces to $y.
$y
n
6*n
The text was updated successfully, but these errors were encountered:
I can confirm this bug.
I tried to disable the rule for the whole file by putting
/* ktlint-disable experimental:indent */
at the start of the file where I use raw strings since the IndentationRule docs state
IndentationRule
"all or nothing" (currently, rule can only be disabled for an entire file)
But no luck. Ktlint still complains. How can I disable this rule for a file then? .)
Sorry, something went wrong.
It seems this bug made it into non-experimental mode as part of 0.37.0. We use raw strings often and it inhibits our ability to upgrade.
Thanks. We're targeting a 0.37.1 release ASAP to fix this and possibly 1 or 2 more bugs in 0.37.0.
romtsn
Successfully merging a pull request may close this issue.
Source code
Expected behavior
ktlint --experimental --format
is a no-op after at most one invocation.Actual behavior
ktlint always adds 6 additional space characters in front of
$y
, i.e. running ktlintn
times will prepend6*n
spaces to$y
.The text was updated successfully, but these errors were encountered: