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:
|
2019-03-26 10:06:29 +01:00
|
|
|
Max: 140
|
2018-11-26 11:33:48 +01:00
|
|
|
Metrics/MethodLength:
|
2019-07-30 10:27:47 +02:00
|
|
|
Max: 35
|
2018-12-03 15:10:04 +01:00
|
|
|
Metrics/CyclomaticComplexity:
|
2019-09-18 13:28:53 +02:00
|
|
|
Max: 13
|
2018-12-03 15:10:04 +01:00
|
|
|
Metrics/PerceivedComplexity:
|
2022-09-20 15:30:44 +02:00
|
|
|
Max: 12
|
2018-12-03 15:10:04 +01:00
|
|
|
Metrics/AbcSize:
|
2019-01-09 16:28:23 +01:00
|
|
|
Max: 45
|
2019-01-17 16:26:03 +01:00
|
|
|
Metrics/ClassLength:
|
|
|
|
Max: 200
|
2019-02-13 12:59:28 +01:00
|
|
|
Metrics/BlockLength:
|
2019-08-01 11:26:40 +02:00
|
|
|
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'
|
2019-08-01 11:26:40 +02:00
|
|
|
- 'app/pdfs/pdf/*.rb'
|
2020-12-15 17:01:54 +01:00
|
|
|
- 'test/**/*.rb'
|
2022-08-29 17:34:09 +02:00
|
|
|
- '**/*_concern.rb'
|
2019-09-19 13:57:33 +02:00
|
|
|
Metrics/ParameterLists:
|
|
|
|
CountKeywordArgs: false
|
2018-12-03 10:22:10 +01:00
|
|
|
Style/RegexpLiteral:
|
|
|
|
EnforcedStyle: slashes
|
2018-12-03 15:10:04 +01:00
|
|
|
Style/EmptyElse:
|
|
|
|
EnforcedStyle: empty
|
2019-01-07 15:34:20 +01:00
|
|
|
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
|