Prevent conflict between multiline-expression-wrapping and function-signature by paul-dingemans · Pull Request #2775 · ktlint/ktlint (original) (raw)

Description

Prevent conflict between multiline-expression-wrapping and function-signature

When function-signature rule is configured with ktlint_function_signature_body_expression_wrapping set to default then the first line of a multiline expression body should be kept on the same line as the end of function signature, as long as max line length is not exceeded. In this case the multiline-expression-wrapping rule has to ignore the multiline function expression body.

Closes #2650

Checklist

Before submitting the PR, please check following (checks which are not relevant may be ignored):

Documentation is updated. See difference between snapshot and release documentation