-
Notifications
You must be signed in to change notification settings - Fork 81
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
Version 1.1.0.51 does not format correctly for style "Kotlinlang" #493
Comments
This was also reported here #490 and is supposedly fixed, but the fix is not released yet. I'm hoping they release it soon, so that the IntelliJ plugin, gradle-ktfmt and ktfmt jar all result in the same formatting again. |
Any news on a possible release for the mentioned fix? It's quite annoying to work around this. |
Ah no, release failed :( |
v0.52 is out now. Let us know if you still face the issues reported here |
Also make sure that spotless is using the same version of ktfmt that you are using in your IDE |
It works for me now: ktfmt 0.52, the IntelliJ plugin, and ktfmt-gradle 0.20.1 all produce the same result. |
The plugin now adds commas after each last parameter of a method, if each parameter is on its own line:
becomes
It was not the case before. Is this standard behaviour? |
@kay-horst it is as now it handles trailing lambdas for the kotlinlang style (see #442) |
./gradlew spotlessapply
) => Formatting back to old (correct) stateSettings for the Spotless plugin:
The workaround mentioned in #486 did not work for me.
The text was updated successfully, but these errors were encountered: