Skip to content

Commit

Permalink
Configure Metrics/ClassLength and turn off for the tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
hainesr committed Feb 9, 2020
1 parent 940c391 commit 9a7243e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ Metrics/BlockLength:
Exclude:
- 'test/**/*.rb'

# Turn class length metrics off for the tests.
Metrics/ClassLength:
Exclude:
- 'test/**/*.rb'

# Rubocop confuses these as instances of "memoization".
Naming/MemoizedInstanceVariableName:
Exclude:
Expand Down
2 changes: 1 addition & 1 deletion .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Layout/EmptyLinesAroundClassBody:
# Offense count: 15
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 579
Max: 580

# Offense count: 26
Metrics/CyclomaticComplexity:
Expand Down

0 comments on commit 9a7243e

Please sign in to comment.