-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
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
ktlint_standard_string-template-indent incompatbile with multi-dollar interpolation #2885
Comments
I don't know why originally it was another rule that seemed to be the cause, but I must have made some mistake. The cause is |
Tnx for reporting. |
As documented on https://kotlinlang.org/docs/strings.html#multi-dollar-string-interpolation the number of Note that compiler flag |
It is a bit difficult to create a reproducer because the latest release of ktlint uses an embedded kotlin version that throws errors when it encounters
$$
before a string. But if you use an embedded kotlin compiler version of2.1.0
with ktlint1.4.1
and run it on thisYou end up with
Which is a syntax error.
Disabling
ktlint_standard_string-template-indent
is preventing this.The text was updated successfully, but these errors were encountered: