1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-28 09:24:24 +01:00
fab-manager/.rubocop.yml

50 lines
1016 B
YAML
Raw Permalink Normal View History

2022-07-19 12:13:50 +02:00
require: rubocop-rails
2022-07-13 10:47:10 +02:00
AllCops:
NewCops: enable
2022-07-19 12:13:50 +02:00
Layout/LineLength:
Max: 145
Metrics/MethodLength:
2019-07-30 10:27:47 +02:00
Max: 35
2023-04-03 11:10:57 +02:00
Exclude:
- 'app/pdfs/pdf/*.rb'
Metrics/CyclomaticComplexity:
Max: 14
Metrics/PerceivedComplexity:
Max: 14
Metrics/AbcSize:
2019-01-09 16:28:23 +01:00
Max: 45
2019-01-17 16:26:03 +01:00
Metrics/ClassLength:
2022-09-27 17:21:43 +02:00
Max: 210
2019-02-13 12:59:28 +01:00
Metrics/BlockLength:
Max: 30
2019-02-13 12:59:28 +01:00
Exclude:
- 'lib/tasks/**/*.rake'
2019-02-25 15:04:38 +01:00
- 'config/routes.rb'
2023-04-03 11:10:57 +02:00
- 'config/environments/*.rb'
- 'app/pdfs/pdf/*.rb'
- 'test/**/*.rb'
2022-08-29 17:34:09 +02:00
- '**/*_concern.rb'
Metrics/ParameterLists:
CountKeywordArgs: false
2018-12-03 10:22:10 +01:00
Style/RegexpLiteral:
EnforcedStyle: slashes
Style/EmptyElse:
EnforcedStyle: empty
Style/ClassAndModuleChildren:
EnforcedStyle: compact
2019-01-09 12:07:31 +01:00
Style/AndOr:
EnforcedStyle: conditionals
2019-04-04 11:57:36 +02:00
Style/FormatString:
EnforcedStyle: sprintf
Rails/RedundantPresenceValidationOnBelongsTo:
Enabled: false
Style/DateTime:
Enabled: true
2023-03-22 16:05:25 +01:00
Style/HashSyntax:
EnforcedShorthandSyntax: never
Rails/TimeZone:
Enabled: true
Rails/UnknownEnv:
Environments: development, test, staging, production