Experimental rules
Important
Up and until Ktlint version 0.47, experimental were located in a separate experimental rule set. As of Ktlint version 0.48, each rule set can optionally define experimental rules.
All experimental rules described below are part of the standard rule set of Ktlint. To enable all experimental rules (from all rule sets), set editorconfig property below:
Expression operand wrapping¶
Wraps each operand in a multiline expression to a separate line.
Rule id: standard:expression-operand-wrapping
Suppress or disable rule (1)
- Suppress rule in code with annotation below:
Enable rule via
.editorconfigDisable rule via.editorconfig