forked from dependabot/dependabot-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rubocop.yml
More file actions
165 lines (153 loc) · 3.27 KB
/
.rubocop.yml
File metadata and controls
165 lines (153 loc) · 3.27 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
---
inherit_from: .rubocop_todo.yml
plugins:
- rubocop-performance
- rubocop-rspec
- rubocop-sorbet
AllCops:
DisplayCopNames: true
Exclude:
- "*/vendor/**/*"
- "**/tmp/**/*"
- "*/spec/fixtures/**/*"
- "vendor/**/*"
- "dry-run/**/*"
- "bundler/helpers/spec_helpers/*"
NewCops: enable
TargetRubyVersion: 3.3
SuggestExtensions:
rubocop-rake: false
Gemspec/DevelopmentDependencies:
Enabled: false
Gemspec/RequireMFA:
Enabled: false
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/FirstMethodArgumentLineBreak:
Enabled: true
Layout/MultilineMethodArgumentLineBreaks:
Enabled: true
Layout/FirstMethodParameterLineBreak:
Enabled: true
Layout/MultilineMethodParameterLineBreaks:
Enabled: true
Layout/LineContinuationLeadingSpace:
Enabled: false
Lint/DuplicateBranch:
Enabled: false
Lint/MissingSuper:
Enabled: false
Lint/MixedRegexpCaptureTypes:
Enabled: false
Lint/NoReturnInBeginEndBlocks:
Enabled: false
Lint/RaiseException:
Enabled: false
Lint/StructNewOverride:
Enabled: false
Metrics/AbcSize:
Max: 35
Metrics/BlockLength:
Exclude:
- "*/Rakefile"
- "**/spec/**/*"
- "*/dependabot-*.gemspec"
Max: 35
Metrics/ClassLength:
Max: 350
Metrics/CyclomaticComplexity:
Max: 15
Metrics/MethodLength:
Max: 35
Metrics/ModuleLength:
Max: 350
Metrics/ParameterLists:
CountKeywordArgs: false
Metrics/PerceivedComplexity:
Max: 10
Naming/FileName:
Enabled: false
Performance/BlockGivenWithExplicitBlock:
Enabled: true
Performance/CaseWhenSplat:
Enabled: true
Performance/Casecmp:
Enabled: true
Performance/IoReadlines:
Enabled: true
RSpec:
Include:
- "**/spec/**/*"
RSpec/IndexedLet:
Enabled: false
Sorbet/ForbidTUnsafe:
Enabled: true
Sorbet/TrueSigil:
Enabled: true
Exclude:
- "**/spec/**/*"
- "rakelib/support/test/**/*"
Sorbet/StrictSigil:
Enabled: true
Exclude:
- "**/spec/**/*"
- "bin/**/*"
- "rakelib/support/test/**/*"
Sorbet/StrongSigil:
Exclude:
- "**/spec/**/*"
- "rakelib/support/test/**/*"
Style/AccessorGrouping:
EnforcedStyle: "separated"
Style/ArgumentsForwarding:
Enabled: false
Style/BisectedAttrAccessor:
Enabled: false
Style/CaseLikeIf:
Enabled: false
Style/Documentation:
Enabled: false
Style/HashEachMethods:
Enabled: false
Style/HashTransformKeys:
Enabled: false
Style/MultipleComparison:
Enabled: false
Style/NumericPredicate:
Exclude:
- "*/spec/**/*"
Style/OptionalBooleanParameter:
Enabled: false
Style/PercentLiteralDelimiters:
PreferredDelimiters:
"%I": "()"
"%W": "()"
"%i": "()"
"%w": "()"
Style/RedundantAssignment:
Enabled: false
Style/RedundantConstantBase:
Enabled: false
Style/RedundantRegexpCharacterClass:
Enabled: false
Style/RedundantRegexpEscape:
Enabled: false
Style/SlicingWithRange:
Enabled: false
Style/StringConcatenation:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/OpenStructUse:
Enabled: true
Style/SpecialGlobalVars:
Enabled: false
Style/SelectByRegexp:
Enabled: false
# TODO these were temporarily disabled during the Ruby 2.7 -> 3.1 upgrade
# in order to keep the upgrade diff small, they will be enabled/fixed in
# a follow-on PR.
Naming/BlockForwarding:
Enabled: false