Ignore the block length of the routes
Since the routes are more of a dsl than code, we've been happy to repeatedly bump up this number. But then that hides other code which has over-long block lengths hiding behind. So instead let's exclude the routes from this metric.
This commit is contained in:
parent
5bb21188e4
commit
a88d62bcc6
2 changed files with 5 additions and 1 deletions
|
@ -19,6 +19,10 @@ Lint/PercentStringArray:
|
|||
- 'app/controllers/application_controller.rb'
|
||||
- 'app/controllers/site_controller.rb'
|
||||
|
||||
Metrics/BlockLength:
|
||||
Exclude:
|
||||
- 'config/routes.rb'
|
||||
|
||||
Naming/FileName:
|
||||
Exclude:
|
||||
- 'script/deliver-message'
|
||||
|
|
|
@ -40,7 +40,7 @@ Metrics/AbcSize:
|
|||
# Configuration parameters: CountComments, ExcludedMethods.
|
||||
# ExcludedMethods: refine
|
||||
Metrics/BlockLength:
|
||||
Max: 263
|
||||
Max: 71
|
||||
|
||||
# Offense count: 15
|
||||
# Configuration parameters: CountBlocks.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue