summaryrefslogtreecommitdiff
path: root/.rubocop_todo.yml
blob: 8abe1e76ebe52313e7a69e10d51da7c38da2fba5 (plain)
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2016-11-19 11:43:45 -0600 using RuboCop version 0.45.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 2
Lint/EmptyWhen:
  Exclude:
    - 'lib/bundler/friendly_errors.rb'
    - 'spec/support/builders.rb'

# Offense count: 4
Lint/Eval:
  Exclude:
    - 'lib/bundler.rb'
    - 'lib/bundler/endpoint_specification.rb'
    - 'spec/support/streams.rb'

# Offense count: 4
Lint/HandleExceptions:
  Exclude:
    - 'lib/bundler/installer.rb'
    - 'lib/bundler/psyched_yaml.rb'
    - 'lib/bundler/vendored_persistent.rb'

# Offense count: 1
Lint/IneffectiveAccessModifier:
  Exclude:
    - 'lib/bundler/settings.rb'

# Offense count: 3
Lint/NestedMethodDefinition:
  Exclude:
    - 'lib/bundler/inline.rb'
    - 'spec/support/builders.rb'

# Offense count: 5
Lint/RescueException:
  Exclude:
    - 'lib/bundler/cli.rb'
    - 'lib/bundler/dsl.rb'
    - 'lib/bundler/friendly_errors.rb'
    - 'lib/bundler/rubygems_integration.rb'
    - 'lib/bundler/worker.rb'

# Offense count: 1
# Configuration parameters: ContextCreatingMethods.
Lint/UselessAccessModifier:
  Exclude:
    - 'lib/bundler/fetcher.rb'

# Offense count: 6
Lint/UselessAssignment:
  Exclude:
    - 'lib/bundler/index.rb'
    - 'lib/bundler/installer.rb'

# Offense count: 7
# Configuration parameters: CountComments.
Metrics/BlockLength:
  Max: 46

# Offense count: 1855
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives.
# URISchemes: http, https
Metrics/LineLength:
  Max: 207

# Offense count: 6
# Cop supports --auto-correct.
Performance/RedundantBlockCall:
  Exclude:
    - 'lib/bundler/dsl.rb'
    - 'lib/bundler/gem_helper.rb'
    - 'lib/bundler/retry.rb'
    - 'lib/bundler/shared_helpers.rb'
    - 'spec/support/helpers.rb'

# Offense count: 2
# Cop supports --auto-correct.
Performance/RedundantMatch:
  Exclude:
    - 'lib/bundler/definition.rb'
    - 'lib/bundler/lockfile_parser.rb'

# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: MaxKeyValuePairs.
Performance/RedundantMerge:
  Exclude:
    - 'lib/bundler/cli/gem.rb'

# Offense count: 1
Style/AccessorMethodName:
  Exclude:
    - 'lib/bundler/source/git.rb'

# Offense count: 4
Style/CaseEquality:
  Exclude:
    - 'lib/bundler/dsl.rb'
    - 'lib/bundler/match_platform.rb'
    - 'lib/bundler/rubygems_ext.rb'

# Offense count: 23
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
  Enabled: false

# Offense count: 9
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly.
# SupportedStyles: assign_to_condition, assign_inside_condition
Style/ConditionalAssignment:
  Exclude:
    - 'lib/bundler/cli.rb'
    - 'lib/bundler/cli/gem.rb'
    - 'lib/bundler/cli/platform.rb'
    - 'lib/bundler/dsl.rb'
    - 'lib/bundler/lazy_specification.rb'
    - 'lib/bundler/psyched_yaml.rb'
    - 'lib/bundler/rubygems_integration.rb'
    - 'lib/bundler/source/git.rb'
    - 'lib/bundler/source/rubygems.rb'

# Offense count: 148
Style/Documentation:
  Enabled: false

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
Style/ExtraSpacing:
  Exclude:
    - 'lib/bundler/cli.rb'

# Offense count: 2
# Configuration parameters: AllowedVariables.
Style/GlobalVars:
  Exclude:
    - 'lib/bundler/cli.rb'
    - 'spec/spec_helper.rb'

# Offense count: 19
# Configuration parameters: MinBodyLength.
Style/GuardClause:
  Exclude:
    - 'lib/bundler/cli/cache.rb'
    - 'lib/bundler/cli/clean.rb'
    - 'lib/bundler/cli/install.rb'
    - 'lib/bundler/cli/outdated.rb'
    - 'lib/bundler/cli/package.rb'
    - 'lib/bundler/definition.rb'
    - 'lib/bundler/dsl.rb'
    - 'lib/bundler/installer.rb'
    - 'lib/bundler/lockfile_parser.rb'
    - 'lib/bundler/runtime.rb'
    - 'lib/bundler/shared_helpers.rb'
    - 'lib/bundler/source/path/installer.rb'
    - 'lib/bundler/source_list.rb'
    - 'spec/commands/newgem_spec.rb'
    - 'spec/support/sometimes.rb'

# Offense count: 1
Style/IfInsideElse:
  Exclude:
    - 'lib/bundler/cli/install.rb'

# Offense count: 1
Style/IfUnlessModifierOfIfUnless:
  Exclude:
    - 'spec/support/helpers.rb'

# Offense count: 10
# Cop supports --auto-correct.
# Configuration parameters: SupportedStyles, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
Style/IndentArray:
  EnforcedStyle: consistent

# Offense count: 6
Style/MethodMissing:
  Exclude:
    - 'lib/bundler/dep_proxy.rb'
    - 'lib/bundler/dsl.rb'
    - 'lib/bundler/lazy_specification.rb'
    - 'lib/bundler/plugin/dsl.rb'
    - 'lib/bundler/remote_specification.rb'
    - 'spec/support/builders.rb'

# Offense count: 2
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: module_function, extend_self
Style/ModuleFunction:
  Exclude:
    - 'lib/bundler/shared_helpers.rb'
    - 'spec/support/path.rb'

# Offense count: 11
# Cop supports --auto-correct.
Style/MultilineIfModifier:
  Exclude:
    - 'bin/with_rubygems'
    - 'lib/bundler/installer.rb'
    - 'lib/bundler/psyched_yaml.rb'
    - 'lib/bundler/rubygems_ext.rb'
    - 'lib/bundler/runtime.rb'
    - 'lib/bundler/source/rubygems.rb'

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: aligned, indented, indented_relative_to_receiver
Style/MultilineMethodCallIndentation:
  Exclude:
    - 'lib/bundler/cli/common.rb'
    - 'spec/bundler/plugin/source_list_spec.rb'

# Offense count: 3
# Cop supports --auto-correct.
Style/NestedParenthesizedCalls:
  Exclude:
    - 'lib/bundler/resolver.rb'
    - 'spec/commands/lock_spec.rb'
    - 'spec/runtime/setup_spec.rb'

# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
  Exclude:
    - 'spec/**/*'
    - 'lib/bundler/gem_helper.rb'
    - 'lib/bundler/mirror.rb'
    - 'lib/bundler/source/git/git_proxy.rb'
    - 'lib/bundler/source/path.rb'

# Offense count: 9
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
# NamePrefix: is_, has_, have_
# NamePrefixBlacklist: is_, has_, have_
# NameWhitelist: is_a?
Style/PredicateName:
  Exclude:
    - 'spec/**/*'
    - 'lib/bundler/definition.rb'
    - 'lib/bundler/installer/parallel_installer.rb'
    - 'lib/bundler/settings.rb'
    - 'lib/bundler/source/git.rb'
    - 'lib/bundler/source/git/git_proxy.rb'
    - 'lib/bundler/source/path.rb'

# Offense count: 25
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: compact, exploded
Style/RaiseArgs:
  Enabled: false

# Offense count: 2
# Cop supports --auto-correct.
Style/RedundantParentheses:
  Exclude:
    - 'lib/bundler/cli/console.rb'
    - 'lib/bundler/dsl.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment.
Style/SpaceAroundOperators:
  Exclude:
    - 'lib/bundler/retry.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
# SupportedStyles: space, no_space
Style/SpaceInsideBlockBraces:
  Exclude:
    - 'lib/bundler/installer/parallel_installer.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowSafeAssignment.
# SupportedStyles: require_parentheses, require_no_parentheses
Style/TernaryParentheses:
  Exclude:
    - 'lib/bundler/cli/common.rb'
    - 'lib/bundler/gem_version_promoter.rb'

# Offense count: 10
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
# SupportedStyles: comma, consistent_comma, no_comma
Style/TrailingCommaInLiteral:
  Exclude:
    - 'lib/bundler/cli/gem.rb'
    - 'lib/bundler/dependency.rb'
    - 'lib/bundler/fetcher.rb'
    - 'lib/bundler/gem_helpers.rb'
    - 'lib/bundler/graph.rb'
    - 'lib/bundler/ruby_version.rb'
    - 'lib/bundler/similarity_detector.rb'
    - 'spec/support/artifice/endpoint.rb'

# Offense count: 18
# Cop supports --auto-correct.
Style/UnneededInterpolation:
  Exclude:
    - 'lib/bundler/cli/config.rb'
    - 'lib/bundler/env.rb'
    - 'spec/bundler/shared_helpers_spec.rb'
    - 'spec/cache/git_spec.rb'
    - 'spec/commands/exec_spec.rb'
    - 'spec/support/artifice/endpoint.rb'
    - 'spec/support/artifice/endpoint_500.rb'

# Offense count: 2
# Configuration parameters: SupportedStyles.
# SupportedStyles: snake_case, normalcase, non_integer
Style/VariableNumber:
  EnforcedStyle: normalcase
  Exclude:
    - 'spec/commands/help_spec.rb'
    - 'spec/other/ext_spec.rb'