11# This configuration was generated by
22# `rubocop --auto-gen-config`
3- # on 2023-05-18 13:42:01 UTC using RuboCop version 1.48.1.
3+ # on 2023-05-18 14:27:28 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
@@ -20,12 +20,11 @@ Lint/ConstantDefinitionInBlock:
2020 - ' spec/functions/get_module_path_spec.rb'
2121 - ' spec/unit/facter/util/puppet_settings_spec.rb'
2222
23- # Offense count: 3
23+ # Offense count: 2
2424# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
2525Lint/DuplicateBranch :
2626 Exclude :
2727 - ' lib/puppet/parser/functions/str2bool.rb'
28- - ' lib/puppet/provider/file_line/ruby.rb'
2928
3029# Offense count: 2
3130# Configuration parameters: MaximumRangeSize.
@@ -55,17 +54,17 @@ Metrics/BlockLength:
5554# Offense count: 4
5655# Configuration parameters: AllowedMethods, AllowedPatterns.
5756Metrics/CyclomaticComplexity :
58- Max : 15
57+ Max : 14
5958
6059# Offense count: 8
6160# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
6261Metrics/MethodLength :
63- Max : 35
62+ Max : 33
6463
6564# Offense count: 3
6665# Configuration parameters: AllowedMethods, AllowedPatterns.
6766Metrics/PerceivedComplexity :
68- Max : 19
67+ Max : 18
6968
7069# Offense count: 2
7170# Configuration parameters: ForbiddenDelimiters.
@@ -183,70 +182,15 @@ Style/FrozenStringLiteralComment:
183182 Exclude :
184183 - ' lib/puppet_x/stdlib/toml_dumper.rb'
185184
186- # Offense count: 4
187- # This cop supports unsafe autocorrection (--autocorrect-all).
188- # Configuration parameters: AllowedMethods.
189- # AllowedMethods: nonzero?
190- Style/IfWithBooleanLiteralBranches :
191- Exclude :
192- - ' lib/facter/pe_version.rb'
193- - ' lib/puppet/parser/functions/fqdn_rotate.rb'
194- - ' lib/puppet/parser/functions/shuffle.rb'
195- - ' lib/puppet/provider/file_line/ruby.rb'
196-
197- # Offense count: 2
198- # This cop supports unsafe autocorrection (--autocorrect-all).
199- Style/MapToHash :
200- Exclude :
201- - ' lib/puppet/parser/functions/prefix.rb'
202- - ' lib/puppet/parser/functions/suffix.rb'
203-
204185# Offense count: 1
205186Style/MixinUsage :
206187 Exclude :
207188 - ' spec/spec_helper.rb'
208189
209- # Offense count: 3
210- # This cop supports unsafe autocorrection (--autocorrect-all).
211- # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
212- # SupportedStyles: predicate, comparison
213- Style/NumericPredicate :
214- Exclude :
215- - ' spec/**/*'
216- - ' lib/puppet/parser/functions/num2bool.rb'
217- - ' lib/puppet/provider/file_line/ruby.rb'
218-
219190# Offense count: 3
220191# Configuration parameters: AllowedMethods.
221192# AllowedMethods: respond_to_missing?
222193Style/OptionalBooleanParameter :
223194 Exclude :
224195 - ' lib/puppet/functions/to_json_pretty.rb'
225196 - ' lib/puppet_x/stdlib/toml_dumper.rb'
226-
227- # Offense count: 2
228- # This cop supports unsafe autocorrection (--autocorrect-all).
229- Style/StringChars :
230- Exclude :
231- - ' lib/puppet/parser/functions/fqdn_rotate.rb'
232- - ' lib/puppet/parser/functions/shuffle.rb'
233-
234- # Offense count: 5
235- # This cop supports unsafe autocorrection (--autocorrect-all).
236- # Configuration parameters: Mode.
237- Style/StringConcatenation :
238- Exclude :
239- - ' lib/puppet_x/stdlib/toml_dumper.rb'
240- - ' spec/functions/get_module_path_spec.rb'
241-
242- # Offense count: 5
243- # This cop supports unsafe autocorrection (--autocorrect-all).
244- # Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
245- # AllowedMethods: define_method
246- Style/SymbolProc :
247- Exclude :
248- - ' lib/puppet/functions/to_json_pretty.rb'
249- - ' lib/puppet/parser/functions/clamp.rb'
250- - ' lib/puppet/parser/functions/fqdn_uuid.rb'
251- - ' lib/puppet/parser/functions/shell_join.rb'
252- - ' lib/puppet/parser/functions/squeeze.rb'
0 commit comments