11# This configuration was generated by
22# `rubocop --auto-gen-config`
3- # on 2024-01-22 15:56:59 UTC using RuboCop version 1.50.2 .
3+ # on 2024-10-25 11:57:32 UTC using RuboCop version 1.67.0 .
44# The point is for the user to remove these configuration records
55# one by one as the offenses are removed from the code base.
66# Note that changes in the inspected code, or installation of new
@@ -26,11 +26,17 @@ Lint/EmptyBlock:
2626 - ' spec/unit/adapters_spec.rb'
2727
2828# Offense count: 3
29+ # Configuration parameters: AllowedParentClasses.
2930Lint/MissingSuper :
3031 Exclude :
3132 - ' lib/rspec-puppet/errors.rb'
3233 - ' lib/rspec-puppet/sensitive.rb'
3334
35+ # Offense count: 1
36+ Lint/MixedRegexpCaptureTypes :
37+ Exclude :
38+ - ' Gemfile'
39+
3440# Offense count: 1
3541Lint/RescueException :
3642 Exclude :
@@ -50,64 +56,11 @@ Lint/SuppressedException:
5056
5157# Offense count: 2
5258# This cop supports safe autocorrection (--autocorrect).
53- # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
59+ # Configuration parameters: AutoCorrect, AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
5460Lint/UnusedMethodArgument :
5561 Exclude :
5662 - ' lib/rspec-puppet/support.rb'
5763
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-
11164# Offense count: 2
11265Naming/AccessorMethodName :
11366 Exclude :
@@ -125,6 +78,7 @@ Naming/ConstantName:
12578# 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
12679Naming/FileName :
12780 Exclude :
81+ - ' Rakefile.rb'
12882 - ' lib/rspec-puppet.rb'
12983 - ' spec/functions/camelCaseFunction_spec.rb'
13084
@@ -138,6 +92,7 @@ Naming/HeredocDelimiterNaming:
13892 - ' spec/unit/matchers/compile_spec.rb'
13993
14094# Offense count: 1
95+ # This cop supports unsafe autocorrection (--autocorrect-all).
14196# Configuration parameters: EnforcedStyleForLeadingUnderscores.
14297# SupportedStylesForLeadingUnderscores: disallowed, required, optional
14398Naming/MemoizedInstanceVariableName :
@@ -164,12 +119,6 @@ Performance/CollectionLiteralInLoop:
164119 - ' lib/rspec-puppet/matchers/count_generic.rb'
165120 - ' lib/rspec-puppet/support.rb'
166121
167- # Offense count: 2
168- # This cop supports safe autocorrection (--autocorrect).
169- Performance/ConstantRegexp :
170- Exclude :
171- - ' lib/rspec-puppet/monkey_patches.rb'
172-
173122# Offense count: 7
174123RSpec/Be :
175124 Exclude :
@@ -232,7 +181,7 @@ RSpec/MultipleDescribes:
232181 - ' spec/unit/example/function_example_group_spec.rb'
233182 - ' spec/unit/monkey_patches_spec.rb'
234183
235- # Offense count: 45
184+ # Offense count: 49
236185RSpec/MultipleExpectations :
237186 Max : 8
238187
@@ -241,7 +190,7 @@ RSpec/MultipleExpectations:
241190RSpec/MultipleMemoizedHelpers :
242191 Max : 7
243192
244- # Offense count: 263
193+ # Offense count: 274
245194# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
246195# SupportedStyles: always, named_only
247196RSpec/NamedSubject :
@@ -323,6 +272,12 @@ RSpec/VerifiedDoubles:
323272 - ' spec/unit/matchers/allow_value_spec.rb'
324273 - ' spec/unit/sensitive_spec.rb'
325274
275+ # Offense count: 5
276+ # This cop supports safe autocorrection (--autocorrect).
277+ Rake/Desc :
278+ Exclude :
279+ - ' Rakefile'
280+
326281# Offense count: 1
327282# This cop supports safe autocorrection (--autocorrect).
328283# Configuration parameters: AllowOnConstant, AllowOnSelfClass.
@@ -336,6 +291,7 @@ Style/ClassVars:
336291 - ' lib/rspec-puppet/support.rb'
337292
338293# Offense count: 1
294+ # This cop supports unsafe autocorrection (--autocorrect-all).
339295Style/CombinableLoops :
340296 Exclude :
341297 - ' spec/classes/catalogue_cache_spec.rb'
@@ -353,15 +309,13 @@ Style/FormatString:
353309 Exclude :
354310 - ' lib/rspec-puppet/coverage.rb'
355311
356- # Offense count: 14
357- # This cop supports safe autocorrection (--autocorrect).
358- Style/IfUnlessModifier :
312+ # Offense count: 1
313+ # This cop supports unsafe autocorrection (--autocorrect-all).
314+ # Configuration parameters: AllowedReceivers.
315+ # AllowedReceivers: Thread.current
316+ Style/HashEachMethods :
359317 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'
318+ - ' Rakefile'
365319
366320# Offense count: 5
367321Style/MissingRespondToMissing :
@@ -390,6 +344,14 @@ Style/SlicingWithRange:
390344 Exclude :
391345 - ' lib/rspec-puppet/monkey_patches.rb'
392346
347+ # Offense count: 2
348+ # This cop supports unsafe autocorrection (--autocorrect-all).
349+ # Configuration parameters: RequireEnglish, EnforcedStyle.
350+ # SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
351+ Style/SpecialGlobalVars :
352+ Exclude :
353+ - ' Rakefile'
354+
393355# Offense count: 2
394356# This cop supports unsafe autocorrection (--autocorrect-all).
395357# Configuration parameters: Mode.
0 commit comments