-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.rubocop.yml
74 lines (55 loc) · 1.24 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
AllCops:
# @see https://docs.rubocop.org/rubocop/configuration.html#pre-processing
Exclude:
- .DS_Store
- .yardoc/
- coverage/
- doc/
- lib/.DS_Store
- spec/.DS_Store
NewCops: enable
TargetRubyVersion: 3.1
inherit_mode:
merge:
- Exclude
require:
- rubocop-md
- rubocop-thread_safety
- rubocop-rspec
- rubocop-rake
- rubocop-performance
Layout/LineLength:
Max: 150
Metrics/MethodLength:
Max: 12
Performance/RedundantMatch:
Enabled: false
# Check with yard instead.
Style/Documentation:
Enabled: false
Style/RedundantInterpolation:
Enabled: false
Layout/HashAlignment:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
Metrics/ClassLength:
Enabled: false
Naming/MemoizedInstanceVariableName:
EnforcedStyleForLeadingUnderscores: required
Style/ClassAndModuleChildren:
EnforcedStyle: nested
Style/EmptyMethod:
EnforcedStyle: expanded
# As long as we don't need to use a version lower or equal to 1.9, we can use the new syntax.
Style/SymbolArray:
Enabled: true
Style/StringLiterals:
EnforcedStyle: double_quotes
RSpec/ExampleLength:
Enabled: false
RSpec/MultipleMemoizedHelpers:
Enabled: false
RSpec/NestedGroups:
Enabled: false
RSpec/NamedSubject:
Enabled: false