-
Notifications
You must be signed in to change notification settings - Fork 14
/
.rubocop.yml
61 lines (53 loc) · 1.05 KB
/
.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
50
51
52
53
54
55
56
57
58
59
60
61
inherit_from: .rubocop_todo.yml
require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
- rubocop-faker
AllCops:
NewCops: enable
DisplayCopNames: true
Exclude:
- 'bin/*'
- 'db/schema.rb'
- 'config/*'
- 'Guardfile'
- 'Rakefile'
RSpec:
Patterns:
- '_spec.rb$'
Rails:
Enabled: true
Metrics/MethodLength:
Include: ['app/controllers/*']
Max: 20
Metrics/AbcSize:
Include: ['app/controllers/*']
Max: 30
Metrics/ClassLength:
Max: 150
Metrics/BlockLength:
ExcludedMethods: ['describe', 'feature', 'context']
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
Style/Documentation:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Layout/HashAlignment:
EnforcedColonStyle: key
Layout/ExtraSpacing:
AllowForAlignment: false
Layout/MultilineMethodCallIndentation:
Enabled: true
EnforcedStyle: indented
Faker/DeprecatedArguments:
Enabled: true