1
1
# This configuration was generated by
2
2
# `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.
4
4
# The point is for the user to remove these configuration records
5
5
# one by one as the offenses are removed from the code base.
6
6
# Note that changes in the inspected code, or installation of new
7
7
# versions of RuboCop, may require this file to be generated again.
8
8
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
-
48
9
# Offense count: 4
49
10
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
50
11
Lint/DuplicateBranch :
51
12
Exclude :
52
13
- ' lib/puppet-lint/lexer/string_slurper.rb'
53
14
- ' lib/puppet-lint/lexer/token.rb'
54
15
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
-
61
16
# Offense count: 9
62
17
# Configuration parameters: MaximumRangeSize.
63
18
Lint/MissingCopEnableDirective :
@@ -71,28 +26,18 @@ Lint/MissingCopEnableDirective:
71
26
- ' lib/puppet-lint/tasks/puppet-lint.rb'
72
27
- ' spec/unit/puppet-lint/puppet-lint_spec.rb'
73
28
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
-
86
29
# Offense count: 58
87
30
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
88
31
Metrics/AbcSize :
89
32
Max : 142
90
33
91
- # Offense count: 35
34
+ # Offense count: 34
92
35
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
93
36
# AllowedMethods: refine
94
37
Metrics/BlockLength :
95
- Max : 145
38
+ Max : 105
39
+ Exclude :
40
+ - ' lib/puppet-lint/plugins/check_whitespace/arrow_alignment.rb'
96
41
97
42
# Offense count: 2
98
43
# Configuration parameters: CountBlocks.
@@ -132,12 +77,6 @@ Naming/MethodParameterName:
132
77
Exclude :
133
78
- ' lib/puppet-lint/monkeypatches.rb'
134
79
135
- # Offense count: 1
136
- # This cop supports safe autocorrection (--autocorrect).
137
- Performance/BindCall :
138
- Exclude :
139
- - ' lib/puppet-lint/monkeypatches.rb'
140
-
141
80
# Offense count: 7
142
81
# Configuration parameters: MinSize.
143
82
Performance/CollectionLiteralInLoop :
@@ -147,20 +86,6 @@ Performance/CollectionLiteralInLoop:
147
86
- ' lib/puppet-lint/plugins/check_resources/ensure_first_param.rb'
148
87
- ' lib/puppet-lint/plugins/check_whitespace/trailing_whitespace.rb'
149
88
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
-
164
89
# Offense count: 408
165
90
# Configuration parameters: Prefixes, AllowedPatterns.
166
91
# Prefixes: when, with, without
@@ -172,22 +97,6 @@ RSpec/ContextWording:
172
97
RSpec/DescribeClass :
173
98
Enabled : false
174
99
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
-
191
100
# Offense count: 50
192
101
# Configuration parameters: CountAsOne.
193
102
RSpec/ExampleLength :
@@ -207,14 +116,6 @@ RSpec/FilePath:
207
116
- ' spec/unit/puppet-lint/lexer_spec.rb'
208
117
- ' spec/unit/puppet-lint/puppet-lint_spec.rb'
209
118
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
-
218
119
# Offense count: 138
219
120
RSpec/MultipleExpectations :
220
121
Max : 137
@@ -224,25 +125,11 @@ RSpec/MultipleExpectations:
224
125
RSpec/MultipleMemoizedHelpers :
225
126
Max : 13
226
127
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
-
233
128
# Offense count: 52
234
129
# Configuration parameters: AllowedGroups.
235
130
RSpec/NestedGroups :
236
131
Max : 5
237
132
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
-
246
133
# Offense count: 8
247
134
RSpec/RepeatedExampleGroupDescription :
248
135
Exclude :
@@ -259,129 +146,13 @@ Style/AccessorGrouping:
259
146
- ' lib/puppet-lint/lexer/string_slurper.rb'
260
147
- ' lib/puppet-lint/tasks/puppet-lint.rb'
261
148
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
-
292
149
# Offense count: 106
293
150
# This cop supports unsafe autocorrection (--autocorrect-all).
294
151
# Configuration parameters: EnforcedStyle.
295
152
# SupportedStyles: always, always_true, never
296
153
Style/FrozenStringLiteralComment :
297
154
Enabled : false
298
155
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
-
385
156
# Offense count: 9
386
157
# This cop supports unsafe autocorrection (--autocorrect-all).
387
158
# Configuration parameters: Mode.
@@ -391,26 +162,3 @@ Style/StringConcatenation:
391
162
- ' lib/puppet-lint/plugins.rb'
392
163
- ' lib/puppet-lint/plugins/top_scope_facts/top_scope_facts.rb'
393
164
- ' 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