1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2024-01-22 15:56:59 UTC using RuboCop version 1.50.2 .
3
+ # on 2024-10-25 12:07:22 UTC using RuboCop version 1.67.0 .
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
@@ -26,11 +26,17 @@ Lint/EmptyBlock:
26
26
- ' spec/unit/adapters_spec.rb'
27
27
28
28
# Offense count: 3
29
+ # Configuration parameters: AllowedParentClasses.
29
30
Lint/MissingSuper :
30
31
Exclude :
31
32
- ' lib/rspec-puppet/errors.rb'
32
33
- ' lib/rspec-puppet/sensitive.rb'
33
34
35
+ # Offense count: 1
36
+ Lint/MixedRegexpCaptureTypes :
37
+ Exclude :
38
+ - ' Gemfile'
39
+
34
40
# Offense count: 1
35
41
Lint/RescueException :
36
42
Exclude :
@@ -50,64 +56,11 @@ Lint/SuppressedException:
50
56
51
57
# Offense count: 2
52
58
# This cop supports safe autocorrection (--autocorrect).
53
- # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
59
+ # Configuration parameters: AutoCorrect, AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
54
60
Lint/UnusedMethodArgument :
55
61
Exclude :
56
62
- ' lib/rspec-puppet/support.rb'
57
63
58
- # Offense count: 5
59
- Lint/UselessAssignment :
60
- Exclude :
61
- - ' lib/rspec-puppet/example/function_example_group.rb'
62
- - ' lib/rspec-puppet/matchers/create_generic.rb'
63
- - ' lib/rspec-puppet/monkey_patches.rb'
64
-
65
- # Offense count: 27
66
- # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
67
- Metrics/AbcSize :
68
- Max : 59
69
-
70
- # Offense count: 7
71
- # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
72
- # AllowedMethods: refine
73
- Metrics/BlockLength :
74
- Max : 111
75
-
76
- # Offense count: 1
77
- # Configuration parameters: CountBlocks.
78
- Metrics/BlockNesting :
79
- Max : 4
80
-
81
- # Offense count: 6
82
- # Configuration parameters: CountComments, CountAsOne.
83
- Metrics/ClassLength :
84
- Max : 297
85
-
86
- # Offense count: 18
87
- # Configuration parameters: AllowedMethods, AllowedPatterns.
88
- Metrics/CyclomaticComplexity :
89
- Max : 18
90
-
91
- # Offense count: 47
92
- # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
93
- Metrics/MethodLength :
94
- Max : 53
95
-
96
- # Offense count: 2
97
- # Configuration parameters: CountComments, CountAsOne.
98
- Metrics/ModuleLength :
99
- Max : 383
100
-
101
- # Offense count: 2
102
- # Configuration parameters: CountKeywordArgs, MaxOptionalParameters.
103
- Metrics/ParameterLists :
104
- Max : 9
105
-
106
- # Offense count: 13
107
- # Configuration parameters: AllowedMethods, AllowedPatterns.
108
- Metrics/PerceivedComplexity :
109
- Max : 20
110
-
111
64
# Offense count: 2
112
65
Naming/AccessorMethodName :
113
66
Exclude :
@@ -125,6 +78,7 @@ Naming/ConstantName:
125
78
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
126
79
Naming/FileName :
127
80
Exclude :
81
+ - ' Rakefile.rb'
128
82
- ' lib/rspec-puppet.rb'
129
83
- ' spec/functions/camelCaseFunction_spec.rb'
130
84
@@ -138,6 +92,7 @@ Naming/HeredocDelimiterNaming:
138
92
- ' spec/unit/matchers/compile_spec.rb'
139
93
140
94
# Offense count: 1
95
+ # This cop supports unsafe autocorrection (--autocorrect-all).
141
96
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
142
97
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
143
98
Naming/MemoizedInstanceVariableName :
@@ -232,7 +187,7 @@ RSpec/MultipleDescribes:
232
187
- ' spec/unit/example/function_example_group_spec.rb'
233
188
- ' spec/unit/monkey_patches_spec.rb'
234
189
235
- # Offense count: 45
190
+ # Offense count: 49
236
191
RSpec/MultipleExpectations :
237
192
Max : 8
238
193
@@ -241,7 +196,7 @@ RSpec/MultipleExpectations:
241
196
RSpec/MultipleMemoizedHelpers :
242
197
Max : 7
243
198
244
- # Offense count: 263
199
+ # Offense count: 274
245
200
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
246
201
# SupportedStyles: always, named_only
247
202
RSpec/NamedSubject :
@@ -323,6 +278,12 @@ RSpec/VerifiedDoubles:
323
278
- ' spec/unit/matchers/allow_value_spec.rb'
324
279
- ' spec/unit/sensitive_spec.rb'
325
280
281
+ # Offense count: 5
282
+ # This cop supports safe autocorrection (--autocorrect).
283
+ Rake/Desc :
284
+ Exclude :
285
+ - ' Rakefile'
286
+
326
287
# Offense count: 1
327
288
# This cop supports safe autocorrection (--autocorrect).
328
289
# Configuration parameters: AllowOnConstant, AllowOnSelfClass.
@@ -336,6 +297,7 @@ Style/ClassVars:
336
297
- ' lib/rspec-puppet/support.rb'
337
298
338
299
# Offense count: 1
300
+ # This cop supports unsafe autocorrection (--autocorrect-all).
339
301
Style/CombinableLoops :
340
302
Exclude :
341
303
- ' spec/classes/catalogue_cache_spec.rb'
@@ -353,15 +315,13 @@ Style/FormatString:
353
315
Exclude :
354
316
- ' lib/rspec-puppet/coverage.rb'
355
317
356
- # Offense count: 14
357
- # This cop supports safe autocorrection (--autocorrect).
358
- Style/IfUnlessModifier :
318
+ # Offense count: 1
319
+ # This cop supports unsafe autocorrection (--autocorrect-all).
320
+ # Configuration parameters: AllowedReceivers.
321
+ # AllowedReceivers: Thread.current
322
+ Style/HashEachMethods :
359
323
Exclude :
360
- - ' lib/rspec-puppet/adapters.rb'
361
- - ' lib/rspec-puppet/coverage.rb'
362
- - ' lib/rspec-puppet/example/function_example_group.rb'
363
- - ' lib/rspec-puppet/matchers/create_generic.rb'
364
- - ' lib/rspec-puppet/support.rb'
324
+ - ' Rakefile'
365
325
366
326
# Offense count: 5
367
327
Style/MissingRespondToMissing :
@@ -390,6 +350,14 @@ Style/SlicingWithRange:
390
350
Exclude :
391
351
- ' lib/rspec-puppet/monkey_patches.rb'
392
352
353
+ # Offense count: 2
354
+ # This cop supports unsafe autocorrection (--autocorrect-all).
355
+ # Configuration parameters: RequireEnglish, EnforcedStyle.
356
+ # SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
357
+ Style/SpecialGlobalVars :
358
+ Exclude :
359
+ - ' Rakefile'
360
+
393
361
# Offense count: 2
394
362
# This cop supports unsafe autocorrection (--autocorrect-all).
395
363
# Configuration parameters: Mode.
0 commit comments