From 06fa1f54c452ca7920d8ef8524bd3bc0ad34b200 Mon Sep 17 00:00:00 2001 From: Paul Dingemans Date: Tue, 20 Aug 2024 15:11:12 +0200 Subject: [PATCH] Add documentation Closes #2650 --- documentation/snapshot/docs/rules/standard.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/documentation/snapshot/docs/rules/standard.md b/documentation/snapshot/docs/rules/standard.md index dff1aa6858..1fb8eca029 100644 --- a/documentation/snapshot/docs/rules/standard.md +++ b/documentation/snapshot/docs/rules/standard.md @@ -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