Skip to content

Commit

Permalink
Merge pull request #10357 from dtrodrigues/andor
Browse files Browse the repository at this point in the history
rubocop: disallow and/or in favor of &&/||
  • Loading branch information
dtrodrigues committed Jan 20, 2021
2 parents 94f560f + 59b8e27 commit 7242cd6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Library/.rubocop.yml
Expand Up @@ -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
Expand Down

0 comments on commit 7242cd6

Please sign in to comment.