-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Expand file tree
/
Copy path.rubocop.yml
More file actions
50 lines (39 loc) · 832 Bytes
/
.rubocop.yml
File metadata and controls
50 lines (39 loc) · 832 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
44
45
46
47
48
49
50
AllCops:
NewCops: enable
TargetRubyVersion: 3.2
Layout/LineLength:
AllowedPatterns: ['\A\s*#']
AllowCopDirectives: true
Style/Documentation:
Enabled: false
Style/AccessorGrouping:
EnforcedStyle: separated
# Relax some metrics for examples
Metrics/MethodLength:
Max: 25
Exclude:
- 'examples/**/*'
Metrics/AbcSize:
Max: 25
Exclude:
- 'examples/**/*'
Metrics/CyclomaticComplexity:
Exclude:
- 'examples/**/*'
Metrics/PerceivedComplexity:
Exclude:
- 'examples/**/*'
Metrics/BlockLength:
Exclude:
- 'examples/**/*'
Metrics/ClassLength:
Exclude:
- 'examples/**/*'
# Examples can use any style for string concatenation
Style/StringConcatenation:
Exclude:
- 'examples/**/*'
# Examples don't need execute permissions
Lint/ScriptPermission:
Exclude:
- 'examples/**/*'