mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-11-29 10:24:20 +01:00
6df9724527
This setting was disabled in config/application.rb: `config.active_record.belongs_to_required_by_default = false`, so we must configure the linter accordingly. Also: linting some little bit of code
41 lines
810 B
YAML
41 lines
810 B
YAML
require: rubocop-rails
|
|
|
|
AllCops:
|
|
NewCops: enable
|
|
Layout/LineLength:
|
|
Max: 140
|
|
Metrics/MethodLength:
|
|
Max: 35
|
|
Metrics/CyclomaticComplexity:
|
|
Max: 13
|
|
Metrics/PerceivedComplexity:
|
|
Max: 12
|
|
Metrics/AbcSize:
|
|
Max: 45
|
|
Metrics/ClassLength:
|
|
Max: 210
|
|
Metrics/BlockLength:
|
|
Max: 30
|
|
Exclude:
|
|
- 'lib/tasks/**/*.rake'
|
|
- 'config/routes.rb'
|
|
- 'app/pdfs/pdf/*.rb'
|
|
- 'test/**/*.rb'
|
|
- '**/*_concern.rb'
|
|
Metrics/ParameterLists:
|
|
CountKeywordArgs: false
|
|
Style/RegexpLiteral:
|
|
EnforcedStyle: slashes
|
|
Style/EmptyElse:
|
|
EnforcedStyle: empty
|
|
Style/ClassAndModuleChildren:
|
|
EnforcedStyle: compact
|
|
Style/AndOr:
|
|
EnforcedStyle: conditionals
|
|
Style/FormatString:
|
|
EnforcedStyle: sprintf
|
|
Style/FormatStringToken:
|
|
EnforcedStyle: template
|
|
Rails/RedundantPresenceValidationOnBelongsTo:
|
|
Enabled: false
|