poohbar
08/26/2022, 2:15 PMelse
branch in when
? It must be new or a bug. My Blank Lines / Minimum blank lines
are all set to 0 except Before declaration with comment
.Klitos Kyriacou
08/26/2022, 2:49 PMelse
case. Put a case 4 ->
before the else
and you'll see the suggestion for a blank line before 4 ->
.
See the guideline in https://kotlinlang.org/docs/coding-conventions.html#control-flow-statements: "In a when
statement, if a branch is more than a single line, consider separating it from adjacent case blocks with a blank line"poohbar
08/26/2022, 3:02 PMJavier
08/28/2022, 12:08 AM