-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.rubocop.yml
More file actions
54 lines (41 loc) · 979 Bytes
/
Copy path.rubocop.yml
File metadata and controls
54 lines (41 loc) · 979 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
51
52
53
54
AllCops:
TargetRubyVersion: 3.3
NewCops: disable
SuggestExtensions: false
Exclude:
- ".ruby-lsp/**/*"
- "vendor/**/*"
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes
# Internal Rails engine — no public API to document
Style/Documentation:
Enabled: false
# @@store in Workflow::Cache is intentional
Style/ClassVars:
Enabled: false
# Complex pipeline and configuration methods legitimately exceed 10 lines
Metrics/MethodLength:
Max: 80
Layout/ExtraSpacing:
AllowForAlignment: true
Metrics/AbcSize:
Max: 55
Metrics/ClassLength:
Max: 300
Metrics/ModuleLength:
Max: 200
Metrics/CyclomaticComplexity:
Max: 15
Metrics/PerceivedComplexity:
Max: 15
# Rake tasks and generator templates are necessarily long blocks
Metrics/BlockLength:
Max: 80
Exclude:
- "lib/tasks/**/*.rake"
- "lib/generators/**/*.rb"
- "spec/**/*.rb"
Layout/LineLength:
Max: 140