Skip to content

Commit

Permalink
Merge pull request #11593 from dmarcoux/disable-RuboCop-Style/EmptyCa…
Browse files Browse the repository at this point in the history
…seCondition

Disable RuboCop Style/EmptyCaseCondition cop
  • Loading branch information
dmarcoux committed Sep 8, 2021
2 parents 19b8470 + 3207a0c commit 2acf054
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ Backend:
- .circleci/**/*
- .github/**/*
- .obs/**/*
- .rubocop.yml
- .rubocop_todo.yml
- src/api/.rubocop.yml
- src/api/.rubocop_todo.yml
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 2acf054

Please sign in to comment.