The rule ids you are using are wrong. The rule Ids...
# ktlint
p
The rule ids you are using are wrong. The rule Ids above should all start with prefix ktlint_standard_ and after that only use hyphens "-" instead of "_". Please try whether that fixes it.
y
Same result using
Copy code
ktlint_standard_function-signature-body-expression-wrapping = default
ktlint_standard_ktlint-function-signature-rule-force-multiline-when-parameter-count-greater-or-equal-than = unset
ktlint_standard_ktlint-chain-method-rule-force-multiline-when-chain-operator-count-greater-or-equal-than = 2
h
I use
ktlint_function_signature_rule_force_multiline_when_parameter_count_greater_or_equal_than = 4
with success if that's any help
y
Is it not possible to use multiline only if the current line is greater than the max_line_length ?
Also the issue isn’t about the parameter of the signature but more about the
Copy code
MaterialAlertDialogBuilder(
    context
).setTitle(
    title
).setMessage(
    message
)
instead of
Copy code
MaterialAlertDialogBuilder(context)
    .setTitle(title)
    .setMessage(message)
Ok so I’ve added the
editorConfigOverride
and it works correctly now
Copy code
ktlint("1.1.1").editorConfigOverride([
    "android": true
])
👍 1