xenomachina
12/13/2023, 10:03 PMxenomachina
12/13/2023, 10:04 PMclass Foo {
fun baz(key: String) {
println("$key")
}
fun bar(key: String, value: Int) {
println("$key $value")
}
}
xenomachina
12/13/2023, 10:05 PMmax_line_length = 120
ktlint_function_signature_wrapping_rule_always_with_minimum_parameters = 10
(I also tried without setting ktlint_function_signature_wrapping_rule_always_with_minimum_parameters
)xenomachina
12/13/2023, 10:05 PM/private/tmp/Foo.kt:6:13: Newline expected after opening parenthesis (standard:function-signature)
/private/tmp/Foo.kt:6:26: Parameter should start on a newline (standard:function-signature)
/private/tmp/Foo.kt:6:36: Newline expected before closing parenthesis (standard:function-signature)
14:01:27.792 [main] WARN com.pinterest.ktlint.cli.internal.KtlintCommandLine - Lint has found errors than can be autocorrected using 'ktlint --format'
Summary error count (descending) by rule:
standard:function-signature: 3