Configure Metrics/AbcSize and turn off for the tests.
This commit is contained in:
parent
0e25e63d38
commit
c97d560b69
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue