https://kotlinlang.org logo
#ktlint
Title
# ktlint
r

Ryan Sang

03/21/2024, 8:42 PM
Are there any rules governing binary operator position at beginning or end of line? For instance I prefer
Copy code
longBoolean
&& otherLongBoolean
&& anotherLongBoolean
versus
Copy code
longBoolean &&
  otherLongBoolean &&
  anotherLongBoolean
I see
condition-wrapping
,
binary-expression-wrapping
mixed-condition-operators
in experimental but none hit my exact desire. (My preference comes from processing the logical inference at the start of the line, plus smaller diffs similar to trailing commas.)
2 Views