Disable `Metrics/*Length` and `AbcSize` cops
This commit is contained in:
parent
ac05489329
commit
ace3df932a
24
.rubocop.yml
24
.rubocop.yml
|
@ -31,39 +31,25 @@ Lint/NestedMethodDefinition:
|
|||
### Metrics
|
||||
|
||||
Metrics/AbcSize:
|
||||
Max: 20
|
||||
Exclude:
|
||||
- 'db/**/*'
|
||||
Enabled: false
|
||||
|
||||
Layout/LineLength:
|
||||
Enabled: false
|
||||
|
||||
Metrics/MethodLength:
|
||||
Max: 15
|
||||
Exclude:
|
||||
- 'db/migrate/*.rb'
|
||||
Enabled: false
|
||||
|
||||
Metrics/BlockLength:
|
||||
Exclude:
|
||||
- '*.gemspec'
|
||||
- '**/*.rake'
|
||||
- 'api/**/*'
|
||||
- 'app/api/routes.rb'
|
||||
- 'config/initialize/**/*'
|
||||
- 'config/initializers/**/*'
|
||||
- 'spec/**/*'
|
||||
Enabled: false
|
||||
|
||||
Metrics/ClassLength:
|
||||
Exclude:
|
||||
- spec/**/*
|
||||
Enabled: false
|
||||
|
||||
Metrics/CyclomaticComplexity:
|
||||
Severity: refactor
|
||||
|
||||
Metrics/ModuleLength:
|
||||
Exclude:
|
||||
- 'app/api/routes.rb'
|
||||
- 'spec/requests/**/*'
|
||||
Enabled: false
|
||||
|
||||
|
||||
### Style / Layout
|
||||
|
|
Loading…
Reference in New Issue