-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
60 lines (45 loc) · 1.12 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
AllCops:
# Additional exclude patterns for files that should not be analyzed.
# These extend the default RuboCop exclude patterns:
# https://github.com/rubocop-hq/rubocop/blob/master/config/default.yml
Exclude:
- 'script/**/*'
- 'db/schema.rb'
- 'tmp/**/*'
- 'storage/**/*'
- 'log/**/*'
DisplayStyleGuide: true
Style/Documentation:
Enabled: false
Lint/UselessAccessModifier:
Enabled: true
Style/AndOr:
Enabled: true
Style/BlockDelimiters:
EnforcedStyle: braces_for_chaining
Style/ClassAndModuleChildren:
EnforcedStyle: nested
Style/CollectionMethods:
Enabled: true
Style/MethodCalledOnDoEndBlock:
Enabled: true
Style/FrozenStringLiteralComment:
EnforcedStyle: always
Style/MutableConstant:
Enabled: true
Metrics/MethodLength:
Enabled: true
Metrics/BlockLength:
Enabled: true
IgnoredMethods: ['describe', 'context', 'define', 'factory', 'namespace']
Metrics/AbcSize:
Enabled: true
Layout/LineLength:
Enabled: true
Max: 120
Layout/SpaceInsideArrayLiteralBrackets:
Enabled: true
AutoCorrect: true
Layout/SpaceInsideReferenceBrackets:
Enabled: true
AutoCorrect: true