Merge pull request #10357 from dtrodrigues/andor

rubocop: disallow and/or in favor of &&/||
This commit is contained in:
Dustin Rodrigues 2021-01-19 21:15:00 -05:00 committed by GitHub
commit 7242cd6474
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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