ktlint icon indicating copy to clipboard operation
ktlint copied to clipboard

Prevent possible conflict between `multiline-expression-wrapping` and `function-signature` body wrapping

Open paul-dingemans opened this issue 1 year ago • 0 comments

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-wrapping in case function-signature rule is enabled, and setting function_signature_body_expression_wrapping is set to default
  • Extract function body expression wrapping from function-signature rule and let this be handled by multiline-expression-wrapping only

paul-dingemans avatar May 08 '24 06:05 paul-dingemans