Ryan Sang
06/14/2024, 9:23 PMPaul Dingemans
06/17/2024, 3:53 PMDoes anyone run with the intelliJ formatter disabled?
Paul Dingemans
06/17/2024, 3:53 PMRyan Sang
06/17/2024, 4:21 PMPaul Dingemans
06/17/2024, 4:36 PMRyan Sang
06/17/2024, 4:59 PMPaul Dingemans
06/17/2024, 6:15 PMRyan Sang
06/17/2024, 7:04 PMij_kotlin_allow_trailing_comma_on_call_site = true
Example:
class MinimalRepro : SuperClassWithLambda({
})
open class SuperClassWithLambda(lambda: () -> Unit)
Expected:
No changes from intellij and no changes from ktlint.
Actual:
ktlint doesn't cause changes but intellij modifies this to
class MinimalRepro : SuperClassWithLambda(
{
},
)
open class SuperClassWithLambda(lambda: () -> Unit)
I don't really care which one happens (mild preference for the no modification, but it is fine), but the difference in behavior causes some problems.
If the goal of ktlint is to be no different from intellij formatter + ktlint that sounds good to me and I can leave intellij formatter enabled.
I can also open a github issue if that is helpful.Ryan Sang
06/17/2024, 7:54 PMPaul Dingemans
06/17/2024, 7:55 PM