11# This configuration was generated by
22# `rubocop --auto-gen-config`
3- # on 2023-05-17 10:10:18 UTC using RuboCop version 1.48.1.
3+ # on 2023-05-17 10:40:49 UTC using RuboCop version 1.48.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
@@ -59,7 +59,7 @@ Metrics/AbcSize:
5959# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
6060# AllowedMethods: refine
6161Metrics/BlockLength :
62- Max : 162
62+ Max : 152
6363
6464# Offense count: 5
6565# Configuration parameters: AllowedMethods, AllowedPatterns.
@@ -69,7 +69,7 @@ Metrics/CyclomaticComplexity:
6969# Offense count: 9
7070# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
7171Metrics/MethodLength :
72- Max : 37
72+ Max : 35
7373
7474# Offense count: 4
7575# Configuration parameters: AllowedMethods, AllowedPatterns.
@@ -105,12 +105,6 @@ Performance/CollectionLiteralInLoop:
105105 Exclude :
106106 - ' lib/puppet/functions/ensure_packages.rb'
107107
108- # Offense count: 1
109- # This cop supports unsafe autocorrection (--autocorrect-all).
110- Performance/MapCompact :
111- Exclude :
112- - ' lib/puppet/parser/functions/values_at.rb'
113-
114108# Offense count: 1
115109# This cop supports unsafe autocorrection (--autocorrect-all).
116110# Configuration parameters: AllowRegexpMatch.
@@ -168,7 +162,7 @@ RSpec/MultipleExpectations:
168162RSpec/MultipleMemoizedHelpers :
169163 Max : 9
170164
171- # Offense count: 55
165+ # Offense count: 253
172166# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
173167# SupportedStyles: always, named_only
174168RSpec/NamedSubject :
@@ -241,26 +235,12 @@ Style/FrozenStringLiteralComment:
241235 - ' spec/type_aliases/http__method_spec.rb'
242236 - ' spec/type_aliases/http__status_spec.rb'
243237
244- # Offense count: 3
245- # This cop supports safe autocorrection (--autocorrect).
246- # Configuration parameters: AllowSplatArgument.
247- Style/HashConversion :
248- Exclude :
249- - ' lib/puppet/functions/to_json_pretty.rb'
250- - ' lib/puppet/parser/functions/prefix.rb'
251- - ' lib/puppet/parser/functions/suffix.rb'
252-
253238# Offense count: 1
254239# This cop supports unsafe autocorrection (--autocorrect-all).
255240Style/HashTransformKeys :
256241 Exclude :
257242 - ' lib/puppet/functions/to_json_pretty.rb'
258243
259- # Offense count: 85
260- # This cop supports safe autocorrection (--autocorrect).
261- Style/IfUnlessModifier :
262- Enabled : false
263-
264244# Offense count: 4
265245# This cop supports unsafe autocorrection (--autocorrect-all).
266246# Configuration parameters: AllowedMethods.
@@ -272,24 +252,19 @@ Style/IfWithBooleanLiteralBranches:
272252 - ' lib/puppet/parser/functions/shuffle.rb'
273253 - ' lib/puppet/provider/file_line/ruby.rb'
274254
275- # Offense count: 1
276- # This cop supports safe autocorrection (--autocorrect).
277- # Configuration parameters: AllowedMethods, AllowedPatterns.
278- Style/MethodCallWithoutArgsParentheses :
255+ # Offense count: 3
256+ # This cop supports unsafe autocorrection (--autocorrect-all).
257+ Style/MapToHash :
279258 Exclude :
280- - ' lib/puppet/functions/deprecation.rb'
259+ - ' lib/puppet/functions/to_json_pretty.rb'
260+ - ' lib/puppet/parser/functions/prefix.rb'
261+ - ' lib/puppet/parser/functions/suffix.rb'
281262
282263# Offense count: 1
283264Style/MixinUsage :
284265 Exclude :
285266 - ' spec/spec_helper.rb'
286267
287- # Offense count: 1
288- # This cop supports safe autocorrection (--autocorrect).
289- Style/NegatedIfElseCondition :
290- Exclude :
291- - ' lib/puppet/parser/functions/pw_hash.rb'
292-
293268# Offense count: 3
294269# This cop supports unsafe autocorrection (--autocorrect-all).
295270# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
@@ -315,12 +290,6 @@ Style/RedundantArgument:
315290 Exclude :
316291 - ' lib/puppet/provider/file_line/ruby.rb'
317292
318- # Offense count: 1
319- # This cop supports safe autocorrection (--autocorrect).
320- Style/RedundantConstantBase :
321- Exclude :
322- - ' lib/puppet/functions/to_json_pretty.rb'
323-
324293# Offense count: 1
325294# This cop supports safe autocorrection (--autocorrect).
326295Style/RedundantFileExtensionInRequire :
0 commit comments