Configure Metrics/AbcSize and turn off for the tests.

This commit is contained in:
Robert Haines 2019-09-29 20:00:07 +01:00
parent 0e25e63d38
commit c97d560b69
2 changed files with 7 additions and 4 deletions

View File

@ -23,6 +23,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:

View File

@ -14,10 +14,6 @@ Layout/EmptyLinesAroundClassBody:
Exclude:
- 'test/extra_field_ut_test.rb'
# Offense count: 120
Metrics/AbcSize:
Max: 60
# Offense count: 15
# Configuration parameters: CountComments.
Metrics/ClassLength: