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
|
||||||
|
|
||||||
Metrics/AbcSize:
|
Metrics/AbcSize:
|
||||||
Max: 20
|
Enabled: false
|
||||||
Exclude:
|
|
||||||
- 'db/**/*'
|
|
||||||
|
|
||||||
Layout/LineLength:
|
Layout/LineLength:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
Metrics/MethodLength:
|
Metrics/MethodLength:
|
||||||
Max: 15
|
Enabled: false
|
||||||
Exclude:
|
|
||||||
- 'db/migrate/*.rb'
|
|
||||||
|
|
||||||
Metrics/BlockLength:
|
Metrics/BlockLength:
|
||||||
Exclude:
|
Enabled: false
|
||||||
- '*.gemspec'
|
|
||||||
- '**/*.rake'
|
|
||||||
- 'api/**/*'
|
|
||||||
- 'app/api/routes.rb'
|
|
||||||
- 'config/initialize/**/*'
|
|
||||||
- 'config/initializers/**/*'
|
|
||||||
- 'spec/**/*'
|
|
||||||
|
|
||||||
Metrics/ClassLength:
|
Metrics/ClassLength:
|
||||||
Exclude:
|
Enabled: false
|
||||||
- spec/**/*
|
|
||||||
|
|
||||||
Metrics/CyclomaticComplexity:
|
Metrics/CyclomaticComplexity:
|
||||||
Severity: refactor
|
Severity: refactor
|
||||||
|
|
||||||
Metrics/ModuleLength:
|
Metrics/ModuleLength:
|
||||||
Exclude:
|
Enabled: false
|
||||||
- 'app/api/routes.rb'
|
|
||||||
- 'spec/requests/**/*'
|
|
||||||
|
|
||||||
|
|
||||||
### Style / Layout
|
### Style / Layout
|
||||||
|
|
Loading…
Reference in New Issue