Pattern: Unnecessary parentheses around condition
Issue: -
This rule checks for the presence of superfluous parentheses around the condition of if
/unless
/while
/until
.
# bad
if (x > 10)
# body omitted
end
# good
if x > 10
# body omitted
end
Attribute | Value |
---|---|
AllowSafeAssignment | true |