mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 10:09:53 +01:00
Disable Metrics/*Length
and AbcSize
cops
This commit is contained in:
parent
ac05489329
commit
ace3df932a
1 changed files with 5 additions and 19 deletions
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 a new issue