rubocop: disallow and/or in favor of &&/||

This commit is contained in:
Dustin Rodrigues 2021-01-18 10:55:00 -05:00
parent 5286be91cb
commit 59b8e27998

View File

@ -89,6 +89,11 @@ Naming/MethodName:
Naming/VariableNumber: Naming/VariableNumber:
Enabled: false Enabled: false
# Require &&/|| instead of and/or
Style/AndOr:
Enabled: true
EnforcedStyle: always
# Avoid leaking resources. # Avoid leaking resources.
Style/AutoResourceCleanup: Style/AutoResourceCleanup:
Enabled: true Enabled: true