-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.rubocop.yml
More file actions
43 lines (39 loc) · 884 Bytes
/
.rubocop.yml
File metadata and controls
43 lines (39 loc) · 884 Bytes
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
AllCops:
NewCops: enable
Layout/LineLength:
Max: 200
Layout/SpaceAroundEqualsInParameterDefault:
EnforcedStyle: 'no_space'
Metrics/BlockLength:
Exclude:
- '**/*_spec.rb'
Metrics/MethodLength:
Description: 'Avoid methods longer than 12 lines of code.'
Max: 12
Style/NumericLiterals:
Enabled: false
Style/RegexpLiteral:
EnforcedStyle: slashes
# disable 'Missing top-level class documentation' warning
Style/Documentation:
Enabled: false
Style/BlockDelimiters:
Exclude:
- 'spec/**/*'
# new linters - opt in
Layout/SpaceAroundMethodCallOperator:
Enabled: true
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true
Style/HashSyntax:
EnforcedShorthandSyntax: either
Style/ExponentialNotation:
Enabled: true
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true