Pattern: Wrong operand order in binary expression
Issue: -
In a binary expression, a literal should always be on the right-hand side if possible. For example, prefer x + 1
over 1 + x
.
Pattern: Wrong operand order in binary expression
Issue: -
In a binary expression, a literal should always be on the right-hand side if possible. For example, prefer x + 1
over 1 + x
.