Disable `Metrics/*Length` and `AbcSize` cops

This commit is contained in:
Andreas Nedbal 2023-10-15 10:09:49 +02:00 committed by Andreas Nedbal
parent ac05489329
commit ace3df932a
1 changed files with 5 additions and 19 deletions

View File

@ -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