-
Notifications
You must be signed in to change notification settings - Fork 113
/
.rubocop.yml
49 lines (48 loc) · 1016 Bytes
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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