-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.rubocop.yml
More file actions
43 lines (43 loc) · 972 Bytes
/
Copy path.rubocop.yml
File metadata and controls
43 lines (43 loc) · 972 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:
TargetRubyVersion: 2.6
Exclude:
- 'db/**/*'
- 'bin/**/*'
- 'config/**/*'
- 'test/system/**/*'
- 'test/rake/**/*'
- 'test/jobs/**/*'
- 'node_modules/**/*'
- 'lib/tasks/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
Layout/LineLength:
Max: 160
Metrics/PerceivedComplexity:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/MethodLength:
Max: 100
Metrics/AbcSize:
Enabled: false
Metrics/ClassLength:
Max: 500
Metrics/BlockLength:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
# Good options that are not enabled by default yet and thus produce warnings
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true
# Very good options that are not enabled by default yet and thus produce warnings
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true
Naming/VariableNumber:
EnforcedStyle: snake_case