Skip to content

Commit

Permalink
Disable RuboCop Style/EmptyCaseCondition cop
Browse files Browse the repository at this point in the history
Using an empty case is sometimes clearer than `if/elsif/elsif/else`.
  • Loading branch information
Dany Marcoux committed Sep 8, 2021
1 parent 19b8470 commit 787eb8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ Style/CommandLiteral:
Style/Documentation:
Enabled: false

# Using an empty case is sometimes clearer than `if/elsif/elsif/else`
Style/EmptyCaseCondition:
Enabled: false

Style/RedundantReturn:
Enabled: false

Expand Down
4 changes: 4 additions & 0 deletions src/api/.rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ Style/CommentAnnotation:
# especially when a comment starts with "review" since we have those in OBS
Keywords: ['TODO', 'FIXME']

# Using an empty case is sometimes clearer than `if/elsif/elsif/else`
Style/EmptyCaseCondition:
Enabled: false

# We need to allow some variables related to rabbiMQ.
Style/GlobalVars:
AllowedVariables: ['$rabbitmq_conn', '$rabbitmq_exchange', '$rabbitmq_channel']
Expand Down

0 comments on commit 787eb8a

Please sign in to comment.