1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-12 23:09:03 +01:00
fab-manager/.rubocop.yml
2023-04-03 11:10:57 +02:00

50 lines
1016 B
YAML

require: rubocop-rails
AllCops:
NewCops: enable
Layout/LineLength:
Max: 145
Metrics/MethodLength:
Max: 35
Exclude:
- 'app/pdfs/pdf/*.rb'
Metrics/CyclomaticComplexity:
Max: 14
Metrics/PerceivedComplexity:
Max: 14
Metrics/AbcSize:
Max: 45
Metrics/ClassLength:
Max: 210
Metrics/BlockLength:
Max: 30
Exclude:
- 'lib/tasks/**/*.rake'
- 'config/routes.rb'
- 'config/environments/*.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
Rails/RedundantPresenceValidationOnBelongsTo:
Enabled: false
Style/DateTime:
Enabled: true
Style/HashSyntax:
EnforcedShorthandSyntax: never
Rails/TimeZone:
Enabled: true
Rails/UnknownEnv:
Environments: development, test, staging, production