ktlint
ktlint copied to clipboard
Prevent possible conflict between `multiline-expression-wrapping` and `function-signature` body wrapping
In case the multiline-expression-wrapping and function-signature rules are enabled, and setting function_signature_body_expression_wrapping is set to default, it may result in conflicts between the rule regarding whether a multiline body expression is to be wrapped or not.
Options:
- Document that those rules affect each other and give recommendation
- Automatically disable the
multiline-expression-wrappingin casefunction-signaturerule is enabled, and settingfunction_signature_body_expression_wrappingis set todefault - Extract function body expression wrapping from
function-signaturerule and let this be handled bymultiline-expression-wrappingonly