Skip to content

Commit

Permalink
Disable the Rubocop Style/GuardClause cop (mastodon#3316)
Browse files Browse the repository at this point in the history
There are many spots throughout the codebase which are showing as covered by
specs in the simplecov output -- but which are not actually run, because they
are on the same line as a guard clause.

I plan on fixing some of these issues, but don't want to keep triggering this
rubocop style violation.

My preference would be that we use the PR review process to identify places
where a guard clause might be appropriate, but that we leave this cop turned off
by default.
  • Loading branch information
mjankowski authored and Gargron committed May 25, 2017
1 parent bc39ad3 commit 6267759
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ Style/RegexpLiteral:
Style/Lambda:
Enabled: false

Style/GuardClause:
Enabled: false

Rails/HasAndBelongsToMany:
Enabled: false

Expand Down

0 comments on commit 6267759

Please sign in to comment.