11# This configuration was generated by
22# `rubocop --auto-gen-config`
3- # on 2023-03-29 10:44:50 UTC using RuboCop version 1.48.1.
3+ # on 2023-04-03 10:54:30 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
77# versions of RuboCop, may require this file to be generated again.
88
9- # Offense count: 20
10- # This cop supports safe autocorrection (--autocorrect).
11- Layout/EmptyLineAfterGuardClause :
12- Enabled : false
13-
14- # Offense count: 100
15- # This cop supports safe autocorrection (--autocorrect).
16- # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
17- # SupportedHashRocketStyles: key, separator, table
18- # SupportedColonStyles: key, separator, table
19- # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
20- Layout/HashAlignment :
21- Exclude :
22- - ' lib/puppet-lint/bin.rb'
23- - ' lib/puppet-lint/lexer.rb'
24- - ' lib/puppet-lint/plugins/legacy_facts/legacy_facts.rb'
25- - ' spec/unit/puppet-lint/configuration_spec.rb'
26-
27- # Offense count: 25
28- # Configuration parameters: AllowedMethods.
29- # AllowedMethods: enums
30- Lint/ConstantDefinitionInBlock :
31- Exclude :
32- - ' lib/puppet-lint/plugins/check_classes/nested_classes_or_defines.rb'
33- - ' lib/puppet-lint/plugins/check_classes/variable_scope.rb'
34- - ' lib/puppet-lint/plugins/check_documentation/documentation.rb'
35- - ' lib/puppet-lint/plugins/check_resources/file_mode.rb'
36- - ' lib/puppet-lint/plugins/check_resources/unquoted_file_mode.rb'
37- - ' lib/puppet-lint/plugins/check_strings/double_quoted_strings.rb'
38- - ' lib/puppet-lint/plugins/check_strings/only_variable_string.rb'
39- - ' lib/puppet-lint/plugins/check_strings/quoted_booleans.rb'
40- - ' lib/puppet-lint/plugins/check_strings/variables_not_enclosed.rb'
41- - ' lib/puppet-lint/plugins/check_variables/variable_contains_dash.rb'
42- - ' lib/puppet-lint/plugins/check_variables/variable_is_lowercase.rb'
43- - ' lib/puppet-lint/plugins/check_whitespace/arrow_alignment.rb'
44- - ' lib/puppet-lint/plugins/check_whitespace/hard_tabs.rb'
45- - ' lib/puppet-lint/plugins/legacy_facts/legacy_facts.rb'
46- - ' lib/puppet-lint/plugins/top_scope_facts/top_scope_facts.rb'
47-
489# Offense count: 4
4910# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
5011Lint/DuplicateBranch :
5112 Exclude :
5213 - ' lib/puppet-lint/lexer/string_slurper.rb'
5314 - ' lib/puppet-lint/lexer/token.rb'
5415
55- # Offense count: 1
56- # This cop supports unsafe autocorrection (--autocorrect-all).
57- Lint/InterpolationCheck :
58- Exclude :
59- - ' lib/puppet-lint/plugins/check_whitespace/line_length.rb'
60-
6116# Offense count: 9
6217# Configuration parameters: MaximumRangeSize.
6318Lint/MissingCopEnableDirective :
@@ -71,28 +26,18 @@ Lint/MissingCopEnableDirective:
7126 - ' lib/puppet-lint/tasks/puppet-lint.rb'
7227 - ' spec/unit/puppet-lint/puppet-lint_spec.rb'
7328
74- # Offense count: 1
75- # This cop supports unsafe autocorrection (--autocorrect-all).
76- Lint/NonDeterministicRequireOrder :
77- Exclude :
78- - ' lib/puppet-lint/plugins.rb'
79-
80- # Offense count: 1
81- # This cop supports safe autocorrection (--autocorrect).
82- Lint/RedundantRequireStatement :
83- Exclude :
84- - ' lib/puppet-lint/lexer.rb'
85-
8629# Offense count: 58
8730# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
8831Metrics/AbcSize :
8932 Max : 142
9033
91- # Offense count: 35
34+ # Offense count: 34
9235# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
9336# AllowedMethods: refine
9437Metrics/BlockLength :
95- Max : 145
38+ Max : 105
39+ Exclude :
40+ - ' lib/puppet-lint/plugins/check_whitespace/arrow_alignment.rb'
9641
9742# Offense count: 2
9843# Configuration parameters: CountBlocks.
@@ -132,12 +77,6 @@ Naming/MethodParameterName:
13277 Exclude :
13378 - ' lib/puppet-lint/monkeypatches.rb'
13479
135- # Offense count: 1
136- # This cop supports safe autocorrection (--autocorrect).
137- Performance/BindCall :
138- Exclude :
139- - ' lib/puppet-lint/monkeypatches.rb'
140-
14180# Offense count: 7
14281# Configuration parameters: MinSize.
14382Performance/CollectionLiteralInLoop :
@@ -147,20 +86,6 @@ Performance/CollectionLiteralInLoop:
14786 - ' lib/puppet-lint/plugins/check_resources/ensure_first_param.rb'
14887 - ' lib/puppet-lint/plugins/check_whitespace/trailing_whitespace.rb'
14988
150- # Offense count: 3
151- # This cop supports unsafe autocorrection (--autocorrect-all).
152- # Configuration parameters: SafeMultiline.
153- Performance/DeletePrefix :
154- Exclude :
155- - ' lib/puppet-lint/lexer.rb'
156- - ' spec/spec_helper.rb'
157-
158- # Offense count: 2
159- # This cop supports safe autocorrection (--autocorrect).
160- RSpec/ContextMethod :
161- Exclude :
162- - ' spec/unit/puppet-lint/lexer_spec.rb'
163-
16489# Offense count: 408
16590# Configuration parameters: Prefixes, AllowedPatterns.
16691# Prefixes: when, with, without
@@ -172,22 +97,6 @@ RSpec/ContextWording:
17297RSpec/DescribeClass :
17398 Enabled : false
17499
175- # Offense count: 17
176- # This cop supports safe autocorrection (--autocorrect).
177- # Configuration parameters: AllowConsecutiveOneLiners.
178- RSpec/EmptyLineAfterExample :
179- Exclude :
180- - ' spec/unit/puppet-lint/bin_spec.rb'
181- - ' spec/unit/puppet-lint/lexer_spec.rb'
182- - ' spec/unit/puppet-lint/plugins/legacy_facts/legacy_facts_spec.rb'
183-
184- # Offense count: 11
185- # This cop supports safe autocorrection (--autocorrect).
186- RSpec/EmptyLineAfterExampleGroup :
187- Exclude :
188- - ' spec/unit/puppet-lint/plugins/legacy_facts/legacy_facts_spec.rb'
189- - ' spec/unit/puppet-lint/plugins/top_scope_facts/top_scope_facts_spec.rb'
190-
191100# Offense count: 50
192101# Configuration parameters: CountAsOne.
193102RSpec/ExampleLength :
@@ -207,14 +116,6 @@ RSpec/FilePath:
207116 - ' spec/unit/puppet-lint/lexer_spec.rb'
208117 - ' spec/unit/puppet-lint/puppet-lint_spec.rb'
209118
210- # Offense count: 2
211- # This cop supports safe autocorrection (--autocorrect).
212- # Configuration parameters: EnforcedStyle.
213- # SupportedStyles: single_line_only, single_statement_only, disallow, require_implicit
214- RSpec/ImplicitSubject :
215- Exclude :
216- - ' spec/unit/puppet-lint/lexer/string_slurper_spec.rb'
217-
218119# Offense count: 138
219120RSpec/MultipleExpectations :
220121 Max : 137
@@ -224,25 +125,11 @@ RSpec/MultipleExpectations:
224125RSpec/MultipleMemoizedHelpers :
225126 Max : 13
226127
227- # Offense count: 1
228- # This cop supports safe autocorrection (--autocorrect).
229- RSpec/MultipleSubjects :
230- Exclude :
231- - ' spec/unit/puppet-lint/lexer_spec.rb'
232-
233128# Offense count: 52
234129# Configuration parameters: AllowedGroups.
235130RSpec/NestedGroups :
236131 Max : 5
237132
238- # Offense count: 2
239- # This cop supports unsafe autocorrection (--autocorrect-all).
240- # Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
241- # SupportedStyles: inflected, explicit
242- RSpec/PredicateMatcher :
243- Exclude :
244- - ' spec/unit/puppet-lint/configuration_spec.rb'
245-
246133# Offense count: 8
247134RSpec/RepeatedExampleGroupDescription :
248135 Exclude :
@@ -259,129 +146,13 @@ Style/AccessorGrouping:
259146 - ' lib/puppet-lint/lexer/string_slurper.rb'
260147 - ' lib/puppet-lint/tasks/puppet-lint.rb'
261148
262- # Offense count: 2
263- # This cop supports unsafe autocorrection (--autocorrect-all).
264- # Configuration parameters: MinBranchesCount.
265- Style/CaseLikeIf :
266- Exclude :
267- - ' lib/puppet-lint/plugins/check_classes/parameter_order.rb'
268- - ' lib/puppet-lint/plugins/check_whitespace/arrow_alignment.rb'
269-
270- # Offense count: 5
271- # This cop supports safe autocorrection (--autocorrect).
272- Style/Encoding :
273- Exclude :
274- - ' lib/puppet-lint/lexer.rb'
275- - ' spec/unit/puppet-lint/lexer/string_slurper_spec.rb'
276- - ' spec/unit/puppet-lint/lexer_spec.rb'
277- - ' spec/unit/puppet-lint/plugins/check_whitespace/140chars_spec.rb'
278- - ' spec/unit/puppet-lint/plugins/check_whitespace/80chars_spec.rb'
279-
280- # Offense count: 1
281- # This cop supports safe autocorrection (--autocorrect).
282- Style/ExpandPathArguments :
283- Exclude :
284- - ' puppet-lint.gemspec'
285-
286- # Offense count: 1
287- # This cop supports safe autocorrection (--autocorrect).
288- Style/ExplicitBlockArgument :
289- Exclude :
290- - ' lib/puppet-lint/tasks/release_test.rb'
291-
292149# Offense count: 106
293150# This cop supports unsafe autocorrection (--autocorrect-all).
294151# Configuration parameters: EnforcedStyle.
295152# SupportedStyles: always, always_true, never
296153Style/FrozenStringLiteralComment :
297154 Enabled : false
298155
299- # Offense count: 1
300- # This cop supports safe autocorrection (--autocorrect).
301- # Configuration parameters: EnforcedStyle.
302- # SupportedStyles: braces, no_braces
303- Style/HashAsLastArrayItem :
304- Exclude :
305- - ' lib/puppet-lint/plugins/check_whitespace/line_length.rb'
306-
307- # Offense count: 16
308- # This cop supports safe autocorrection (--autocorrect).
309- Style/IfUnlessModifier :
310- Exclude :
311- - ' lib/puppet-lint/bin.rb'
312- - ' lib/puppet-lint/checkplugin.rb'
313- - ' lib/puppet-lint/data.rb'
314- - ' lib/puppet-lint/plugins.rb'
315- - ' lib/puppet-lint/plugins/check_classes/autoloader_layout.rb'
316- - ' lib/puppet-lint/plugins/check_classes/parameter_order.rb'
317- - ' lib/puppet-lint/plugins/check_resources/ensure_first_param.rb'
318- - ' lib/puppet-lint/plugins/check_strings/only_variable_string.rb'
319- - ' lib/puppet-lint/plugins/check_whitespace/arrow_alignment.rb'
320- - ' lib/puppet-lint/tasks/puppet-lint.rb'
321-
322- # Offense count: 2
323- # This cop supports unsafe autocorrection (--autocorrect-all).
324- # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
325- # SupportedStyles: predicate, comparison
326- Style/NumericPredicate :
327- Exclude :
328- - ' spec/**/*'
329- - ' lib/puppet-lint/data.rb'
330- - ' lib/puppet-lint/plugins/check_whitespace/arrow_alignment.rb'
331-
332- # Offense count: 4
333- # This cop supports unsafe autocorrection (--autocorrect-all).
334- # Configuration parameters: Methods.
335- Style/RedundantArgument :
336- Exclude :
337- - ' lib/puppet-lint/checks.rb'
338- - ' spec/unit/puppet-lint/lexer_spec.rb'
339-
340- # Offense count: 5
341- # This cop supports safe autocorrection (--autocorrect).
342- Style/RedundantRegexpEscape :
343- Exclude :
344- - ' lib/puppet-lint/data.rb'
345- - ' lib/puppet-lint/monkeypatches.rb'
346- - ' spec/unit/puppet-lint/bin_spec.rb'
347-
348- # Offense count: 2
349- # This cop supports safe autocorrection (--autocorrect).
350- # Configuration parameters: EnforcedStyle.
351- # SupportedStyles: implicit, explicit
352- Style/RescueStandardError :
353- Exclude :
354- - ' lib/puppet-lint/checks.rb'
355- - ' lib/puppet-lint/monkeypatches.rb'
356-
357- # Offense count: 22
358- # This cop supports unsafe autocorrection (--autocorrect-all).
359- Style/SlicingWithRange :
360- Exclude :
361- - ' lib/puppet-lint/data.rb'
362- - ' lib/puppet-lint/lexer.rb'
363- - ' lib/puppet-lint/plugins/check_classes/autoloader_layout.rb'
364- - ' lib/puppet-lint/plugins/check_classes/nested_classes_or_defines.rb'
365- - ' lib/puppet-lint/plugins/check_classes/variable_scope.rb'
366- - ' lib/puppet-lint/plugins/check_conditionals/case_without_default.rb'
367- - ' lib/puppet-lint/plugins/check_nodes/unquoted_node_name.rb'
368-
369- # Offense count: 3
370- # This cop supports safe autocorrection (--autocorrect).
371- # Configuration parameters: AllowModifier.
372- Style/SoleNestedConditional :
373- Exclude :
374- - ' lib/puppet-lint/data.rb'
375- - ' lib/puppet-lint/lexer/token.rb'
376- - ' lib/puppet-lint/plugins/check_classes/variable_scope.rb'
377-
378- # Offense count: 3
379- # This cop supports safe autocorrection (--autocorrect).
380- Style/StderrPuts :
381- Exclude :
382- - ' lib/puppet-lint.rb'
383- - ' lib/puppet-lint/data.rb'
384-
385156# Offense count: 9
386157# This cop supports unsafe autocorrection (--autocorrect-all).
387158# Configuration parameters: Mode.
@@ -391,26 +162,3 @@ Style/StringConcatenation:
391162 - ' lib/puppet-lint/plugins.rb'
392163 - ' lib/puppet-lint/plugins/top_scope_facts/top_scope_facts.rb'
393164 - ' spec/unit/puppet-lint/plugins/check_strings/variables_not_enclosed_spec.rb'
394-
395- # Offense count: 21
396- # This cop supports safe autocorrection (--autocorrect).
397- # Configuration parameters: EnforcedStyleForMultiline.
398- # SupportedStylesForMultiline: comma, consistent_comma, no_comma
399- Style/TrailingCommaInHashLiteral :
400- Exclude :
401- - ' lib/puppet-lint/bin.rb'
402- - ' lib/puppet-lint/checkplugin.rb'
403- - ' lib/puppet-lint/checks.rb'
404- - ' lib/puppet-lint/data.rb'
405- - ' lib/puppet-lint/lexer.rb'
406- - ' lib/puppet-lint/plugins/legacy_facts/legacy_facts.rb'
407- - ' lib/puppet-lint/plugins/top_scope_facts/top_scope_facts.rb'
408- - ' lib/puppet-lint/report/codeclimate.rb'
409- - ' spec/spec_helper.rb'
410- - ' spec/spec_helper_acceptance_local.rb'
411-
412- # Offense count: 1
413- # This cop supports safe autocorrection (--autocorrect).
414- Style/UnpackFirst :
415- Exclude :
416- - ' lib/puppet-lint.rb'
0 commit comments