Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
Closes #2650
  • Loading branch information
paul-dingemans committed Aug 20, 2024
1 parent 9fbcd2e commit 06fa1f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions documentation/snapshot/docs/rules/standard.md
Original file line number Diff line number Diff line change
Expand Up @@ -4454,6 +4454,8 @@ Suppress or disable rule (1)

Multiline expression on the right hand side of an expression are forced to start on a separate line. Expressions in return statement are excluded as that would result in a compilation error.

Setting `ktlint_function_signature_body_expression_wrapping` of the `function-signature` rule takes precedence when set to `default`. This setting keeps the first line of a multiline expression body on the same line as the end of function signature as long as the max line length is not exceeded. In that case, this rule does not wrap the multiline expression.

=== "[:material-heart:](#) Ktlint"

```kotlin
Expand Down

0 comments on commit 06fa1f5

Please # to comment.