Closed rsmith20 closed 3 months ago
Most likely you have disabled the wrong rule. It is the argument-list-wrapping
rule that is transforming your code. Note that since 1.2.x
there is a configuration parameter which you can set to change the behavior of this rule. See https://pinterest.github.io/ktlint/latest/rules/standard/#argument-list-wrapping
Confirmed, disabling argument-list-wrapping
instead of parameter-list-wrapping
fixed the issue. Thanks!
Expected Behavior
The following code
should be unchanged after formatting given the .editorconfig below.
Observed Behavior
Instead the following code is produced
Steps to Reproduce
Use latest CLI ktlint or the ktlint intelliJ plugin on a file with this code. Both repro.
Your Environment
.editorconfig
:Kotlin style rules that get handled by intelliJ and ktlint.
[{.kt,.kts}]
ktlint specific rules
ktlint_code_style = intellij_idea ktlint_standard_parameter-list-wrapping = disabled