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-07-05 20:35:14 UTC using RuboCop version 1.64.1 .
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,20 @@ 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
5864# Offense count: 5
65+ # This cop supports unsafe autocorrection (--autocorrect-all).
66+ # Configuration parameters: AutoCorrect.
5967Lint/UselessAssignment :
6068 Exclude :
6169 - ' lib/rspec-puppet/example/function_example_group.rb'
6270 - ' lib/rspec-puppet/matchers/create_generic.rb'
6371 - ' lib/rspec-puppet/monkey_patches.rb'
6472
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-
11173# Offense count: 2
11274Naming/AccessorMethodName :
11375 Exclude :
@@ -125,6 +87,7 @@ Naming/ConstantName:
12587# 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
12688Naming/FileName :
12789 Exclude :
90+ - ' Rakefile.rb'
12891 - ' lib/rspec-puppet.rb'
12992 - ' spec/functions/camelCaseFunction_spec.rb'
13093
@@ -138,6 +101,7 @@ Naming/HeredocDelimiterNaming:
138101 - ' spec/unit/matchers/compile_spec.rb'
139102
140103# Offense count: 1
104+ # This cop supports unsafe autocorrection (--autocorrect-all).
141105# Configuration parameters: EnforcedStyleForLeadingUnderscores.
142106# SupportedStylesForLeadingUnderscores: disallowed, required, optional
143107Naming/MemoizedInstanceVariableName :
@@ -199,6 +163,12 @@ RSpec/DescribeClass:
199163RSpec/ExampleLength :
200164 Max : 12
201165
166+ # Offense count: 16
167+ # Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
168+ # Include: **/*_spec*rb*, **/spec/**/*
169+ RSpec/FilePath :
170+ Enabled : false
171+
202172# Offense count: 2
203173RSpec/ImplicitBlockExpectation :
204174 Exclude :
@@ -232,7 +202,7 @@ RSpec/MultipleDescribes:
232202 - ' spec/unit/example/function_example_group_spec.rb'
233203 - ' spec/unit/monkey_patches_spec.rb'
234204
235- # Offense count: 45
205+ # Offense count: 49
236206RSpec/MultipleExpectations :
237207 Max : 8
238208
@@ -241,7 +211,7 @@ RSpec/MultipleExpectations:
241211RSpec/MultipleMemoizedHelpers :
242212 Max : 7
243213
244- # Offense count: 263
214+ # Offense count: 274
245215# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
246216# SupportedStyles: always, named_only
247217RSpec/NamedSubject :
@@ -323,6 +293,12 @@ RSpec/VerifiedDoubles:
323293 - ' spec/unit/matchers/allow_value_spec.rb'
324294 - ' spec/unit/sensitive_spec.rb'
325295
296+ # Offense count: 5
297+ # This cop supports safe autocorrection (--autocorrect).
298+ Rake/Desc :
299+ Exclude :
300+ - ' Rakefile'
301+
326302# Offense count: 1
327303# This cop supports safe autocorrection (--autocorrect).
328304# Configuration parameters: AllowOnConstant, AllowOnSelfClass.
@@ -336,6 +312,7 @@ Style/ClassVars:
336312 - ' lib/rspec-puppet/support.rb'
337313
338314# Offense count: 1
315+ # This cop supports unsafe autocorrection (--autocorrect-all).
339316Style/CombinableLoops :
340317 Exclude :
341318 - ' spec/classes/catalogue_cache_spec.rb'
@@ -353,6 +330,23 @@ Style/FormatString:
353330 Exclude :
354331 - ' lib/rspec-puppet/coverage.rb'
355332
333+ # Offense count: 2
334+ # This cop supports unsafe autocorrection (--autocorrect-all).
335+ # Configuration parameters: EnforcedStyle.
336+ # SupportedStyles: always, always_true, never
337+ Style/FrozenStringLiteralComment :
338+ Exclude :
339+ - ' Gemfile'
340+ - ' Rakefile'
341+
342+ # Offense count: 1
343+ # This cop supports unsafe autocorrection (--autocorrect-all).
344+ # Configuration parameters: AllowedReceivers.
345+ # AllowedReceivers: Thread.current
346+ Style/HashEachMethods :
347+ Exclude :
348+ - ' Rakefile'
349+
356350# Offense count: 14
357351# This cop supports safe autocorrection (--autocorrect).
358352Style/IfUnlessModifier :
@@ -390,6 +384,14 @@ Style/SlicingWithRange:
390384 Exclude :
391385 - ' lib/rspec-puppet/monkey_patches.rb'
392386
387+ # Offense count: 2
388+ # This cop supports unsafe autocorrection (--autocorrect-all).
389+ # Configuration parameters: RequireEnglish, EnforcedStyle.
390+ # SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
391+ Style/SpecialGlobalVars :
392+ Exclude :
393+ - ' Rakefile'
394+
393395# Offense count: 2
394396# This cop supports unsafe autocorrection (--autocorrect-all).
395397# Configuration parameters: Mode.
0 commit comments