Skip to content

Commit

Permalink
Configure Metrics/AbcSize and turn off for the tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
hainesr committed Sep 29, 2019
1 parent 56a4afb commit 2338a1a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ Lint/UselessComparison:
Exclude:
- 'test/entry_test.rb'

# Turn off ABC metrics for the tests and set a workable max given
# the current state of the code.
Metrics/AbcSize:
Max: 37
Exclude:
- 'test/**/*.rb'

# Turn block length metrics off for the tests.
Metrics/BlockLength:
Exclude:
Expand Down
4 changes: 0 additions & 4 deletions .rubocop_rubyzip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 109
Metrics/AbcSize:
Max: 60

# Offense count: 14
# Configuration parameters: CountComments.
Metrics/ClassLength:
Expand Down

0 comments on commit 2338a1a

Please sign in to comment.