is there a rule for multi-line expression bodies? ...
# detekt
e
is there a rule for multi-line expression bodies? I'm fine with
fun foo() = "blah"
but I'd like to enforce that multi-line expression bodies have a line break after the
=
or at least have it consistent within a single class/file
b
No, there is not.
e
ktlint has the Function Signature rule with the
ktlint_function_signature_body_expression_wrapping
config setting might be something to add in the future