1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2023-09-29 10:39:55 UTC using RuboCop version 1.56.4.
3
+ # on 2023-10-02 10:16:22 UTC using RuboCop version 1.56.4.
4
4
# The point is for the user to remove these configuration records
5
5
# one by one as the offenses are removed from the code base.
6
6
# Note that changes in the inspected code, or installation of new
@@ -13,6 +13,11 @@ Lint/DuplicateBranch:
13
13
- ' lib/rspec-puppet/matchers/compile.rb'
14
14
- ' lib/rspec-puppet/matchers/run.rb'
15
15
16
+ # Offense count: 1
17
+ Lint/DuplicateMethods :
18
+ Exclude :
19
+ - ' lib/rspec-puppet/adapters.rb'
20
+
16
21
# Offense count: 2
17
22
# Configuration parameters: AllowComments, AllowEmptyLambdas.
18
23
Lint/EmptyBlock :
@@ -59,48 +64,48 @@ Lint/UselessAssignment:
59
64
- ' lib/rspec-puppet/matchers/create_generic.rb'
60
65
- ' lib/rspec-puppet/monkey_patches.rb'
61
66
62
- # Offense count: 29
67
+ # Offense count: 27
63
68
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
64
69
Metrics/AbcSize :
65
- Max : 47
70
+ Max : 56
66
71
67
72
# Offense count: 7
68
73
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
69
74
# AllowedMethods: refine
70
75
Metrics/BlockLength :
71
76
Max : 111
72
77
73
- # Offense count: 3
78
+ # Offense count: 1
74
79
# Configuration parameters: CountBlocks.
75
80
Metrics/BlockNesting :
76
81
Max : 4
77
82
78
- # Offense count: 5
83
+ # Offense count: 6
79
84
# Configuration parameters: CountComments, CountAsOne.
80
85
Metrics/ClassLength :
81
86
Max : 297
82
87
83
- # Offense count: 19
88
+ # Offense count: 18
84
89
# Configuration parameters: AllowedMethods, AllowedPatterns.
85
90
Metrics/CyclomaticComplexity :
86
91
Max : 18
87
92
88
- # Offense count: 53
93
+ # Offense count: 47
89
94
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
90
95
Metrics/MethodLength :
91
- Max : 37
96
+ Max : 49
92
97
93
98
# Offense count: 2
94
99
# Configuration parameters: CountComments, CountAsOne.
95
100
Metrics/ModuleLength :
96
- Max : 422
101
+ Max : 388
97
102
98
103
# Offense count: 2
99
104
# Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
100
105
Metrics/ParameterLists :
101
106
Max : 9
102
107
103
- # Offense count: 14
108
+ # Offense count: 13
104
109
# Configuration parameters: AllowedMethods, AllowedPatterns.
105
110
Metrics/PerceivedComplexity :
106
111
Max : 20
@@ -181,42 +186,27 @@ RSpec/BeforeAfterAll:
181
186
- ' **/spec/support/**/*.rb'
182
187
- ' spec/unit/coverage_spec.rb'
183
188
184
- # Offense count: 76
189
+ # Offense count: 74
185
190
# Configuration parameters: Prefixes, AllowedPatterns.
186
191
# Prefixes: when, with, without
187
192
RSpec/ContextWording :
188
193
Enabled : false
189
194
190
- # Offense count: 90
195
+ # Offense count: 89
191
196
# Configuration parameters: IgnoredMetadata.
192
197
RSpec/DescribeClass :
193
198
Enabled : false
194
199
195
- # Offense count: 25
200
+ # Offense count: 23
196
201
# Configuration parameters: CountAsOne.
197
202
RSpec/ExampleLength :
198
203
Max : 12
199
204
200
- # Offense count: 15
205
+ # Offense count: 16
201
206
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
202
207
# Include: **/*_spec*rb*, **/spec/**/*
203
208
RSpec/FilePath :
204
- Exclude :
205
- - ' spec/cache_spec.rb'
206
- - ' spec/classes/test_multi_os.rb'
207
- - ' spec/raw_string_spec.rb'
208
- - ' spec/support_spec.rb'
209
- - ' spec/unit/coverage_spec.rb'
210
- - ' spec/unit/example/function_example_group_spec.rb'
211
- - ' spec/unit/facter_impl_spec.rb'
212
- - ' spec/unit/matchers/allow_value_spec.rb'
213
- - ' spec/unit/matchers/count_generic_spec.rb'
214
- - ' spec/unit/matchers/parameter_matcher_spec.rb'
215
- - ' spec/unit/matchers/raise_error_spec.rb'
216
- - ' spec/unit/matchers/run_spec.rb'
217
- - ' spec/unit/monkey_patches/win32/taskscheduler_spec.rb'
218
- - ' spec/unit/raw_string_spec.rb'
219
- - ' spec/unit/sensitive_spec.rb'
209
+ Enabled : false
220
210
221
211
# Offense count: 2
222
212
RSpec/ImplicitBlockExpectation :
@@ -234,7 +224,7 @@ RSpec/InstanceVariable:
234
224
- ' spec/types/cleanup_spec.rb'
235
225
- ' spec/unit/coverage_spec.rb'
236
226
237
- # Offense count: 11
227
+ # Offense count: 10
238
228
# Configuration parameters: .
239
229
# SupportedStyles: have_received, receive
240
230
RSpec/MessageSpies :
@@ -248,10 +238,10 @@ RSpec/MultipleDescribes:
248
238
- ' spec/classes/sysctl_common_spec.rb'
249
239
- ' spec/defines/sysctl_before_spec.rb'
250
240
- ' spec/functions/test_function_spec.rb'
251
- - ' spec/unit/adapters_spec .rb'
241
+ - ' spec/unit/example/function_example_group_spec .rb'
252
242
- ' spec/unit/monkey_patches_spec.rb'
253
243
254
- # Offense count: 46
244
+ # Offense count: 45
255
245
RSpec/MultipleExpectations :
256
246
Max : 8
257
247
@@ -260,13 +250,13 @@ RSpec/MultipleExpectations:
260
250
RSpec/MultipleMemoizedHelpers :
261
251
Max : 7
262
252
263
- # Offense count: 284
253
+ # Offense count: 263
264
254
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
265
255
# SupportedStyles: always, named_only
266
256
RSpec/NamedSubject :
267
257
Enabled : false
268
258
269
- # Offense count: 20
259
+ # Offense count: 26
270
260
# Configuration parameters: AllowedGroups.
271
261
RSpec/NestedGroups :
272
262
Max : 5
@@ -291,14 +281,15 @@ RSpec/RepeatedExample:
291
281
Exclude :
292
282
- ' spec/types/valid_provider_spec.rb'
293
283
294
- # Offense count: 7
284
+ # Offense count: 9
295
285
RSpec/RepeatedExampleGroupDescription :
296
286
Exclude :
297
287
- ' spec/classes/facts_spec.rb'
298
288
- ' spec/classes/sysctl_common_spec.rb'
299
289
- ' spec/defines/sysctl_before_spec.rb'
290
+ - ' spec/unit/adapters_spec.rb'
300
291
301
- # Offense count: 14
292
+ # Offense count: 15
302
293
# Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
303
294
# Include: **/*_spec.rb
304
295
RSpec/SpecFilePathFormat :
@@ -307,10 +298,11 @@ RSpec/SpecFilePathFormat:
307
298
- ' spec/cache_spec.rb'
308
299
- ' spec/raw_string_spec.rb'
309
300
- ' spec/support_spec.rb'
301
+ - ' spec/unit/adapters_spec.rb'
310
302
- ' spec/unit/coverage_spec.rb'
311
- - ' spec/unit/example/function_example_group_spec.rb'
312
303
- ' spec/unit/facter_impl_spec.rb'
313
304
- ' spec/unit/matchers/allow_value_spec.rb'
305
+ - ' spec/unit/matchers/compile_spec.rb'
314
306
- ' spec/unit/matchers/count_generic_spec.rb'
315
307
- ' spec/unit/matchers/parameter_matcher_spec.rb'
316
308
- ' spec/unit/matchers/raise_error_spec.rb'
@@ -326,18 +318,12 @@ RSpec/SpecFilePathSuffix:
326
318
Exclude :
327
319
- ' spec/classes/test_multi_os.rb'
328
320
329
- # Offense count: 3
321
+ # Offense count: 2
330
322
RSpec/SubjectStub :
331
323
Exclude :
332
- - ' spec/unit/adapters_spec.rb'
333
324
- ' spec/unit/coverage_spec.rb'
334
325
335
- # Offense count: 1
336
- RSpec/UnspecifiedException :
337
- Exclude :
338
- - ' spec/support_spec.rb'
339
-
340
- # Offense count: 16
326
+ # Offense count: 7
341
327
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
342
328
RSpec/VerifiedDoubles :
343
329
Exclude :
@@ -365,7 +351,7 @@ Style/CombinableLoops:
365
351
Exclude :
366
352
- ' spec/classes/catalogue_cache_spec.rb'
367
353
368
- # Offense count: 65
354
+ # Offense count: 55
369
355
# Configuration parameters: AllowedConstants.
370
356
Style/Documentation :
371
357
Enabled : false
@@ -378,15 +364,14 @@ Style/FormatString:
378
364
Exclude :
379
365
- ' lib/rspec-puppet/coverage.rb'
380
366
381
- # Offense count: 15
367
+ # Offense count: 14
382
368
# This cop supports safe autocorrection (--autocorrect).
383
369
Style/IfUnlessModifier :
384
370
Exclude :
385
371
- ' lib/rspec-puppet/adapters.rb'
386
372
- ' lib/rspec-puppet/coverage.rb'
387
373
- ' lib/rspec-puppet/example/function_example_group.rb'
388
374
- ' lib/rspec-puppet/matchers/create_generic.rb'
389
- - ' lib/rspec-puppet/monkey_patches.rb'
390
375
- ' lib/rspec-puppet/support.rb'
391
376
392
377
# Offense count: 5
@@ -424,7 +409,7 @@ Style/StringConcatenation:
424
409
- ' lib/rspec-puppet/matchers/compile.rb'
425
410
- ' lib/rspec-puppet/support.rb'
426
411
427
- # Offense count: 28
412
+ # Offense count: 26
428
413
# This cop supports safe autocorrection (--autocorrect).
429
414
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
430
415
# URISchemes: http, https
0 commit comments