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:
Javi Martín
2021-08-11 15:56:57 +02:00
parent 9b61945ee4
commit 2c76f265f8
5 changed files with 16 additions and 13 deletions

View File

@@ -469,6 +469,9 @@ Style/MethodDefParentheses:
Style/MutableConstant:
Enabled: true
Style/NegatedIfElseCondition:
Enabled: true
Style/Not:
Enabled: true