Add rule to check if semantics.
Good
Default semantics
val x =
if (a > 13) {
100
} else {
500
}
One line semantics (if line shorter than 100 symbols)
val x = if (a > 13) 100 else 500
Bad
val x = if (a > 13) 100
else 500
val x =
if (a > 13)
100
else
500
Add rule to check
ifsemantics.Good
Default semantics
One line semantics (if line shorter than 100 symbols)
Bad