Add and apply Style/NegatedIfElseCondition rule
This rule was added in Rubocop 1.2.0, and will make developers who hate negative conditions particularly happy.
This commit is contained in:
@@ -469,6 +469,9 @@ Style/MethodDefParentheses:
|
||||
Style/MutableConstant:
|
||||
Enabled: true
|
||||
|
||||
Style/NegatedIfElseCondition:
|
||||
Enabled: true
|
||||
|
||||
Style/Not:
|
||||
Enabled: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user