puppetlabs_spec_helper 4.0.1 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +481 -116
  3. data/README.md +5 -19
  4. data/lib/puppetlabs_spec_helper/module_spec_helper.rb +8 -10
  5. data/lib/puppetlabs_spec_helper/puppet_spec_helper.rb +2 -86
  6. data/lib/puppetlabs_spec_helper/puppetlabs_spec/files.rb +3 -1
  7. data/lib/puppetlabs_spec_helper/puppetlabs_spec/fixtures.rb +3 -3
  8. data/lib/puppetlabs_spec_helper/puppetlabs_spec/matchers.rb +0 -17
  9. data/lib/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals.rb +35 -68
  10. data/lib/puppetlabs_spec_helper/rake_tasks.rb +44 -63
  11. data/lib/puppetlabs_spec_helper/tasks/check_symlinks.rb +1 -3
  12. data/lib/puppetlabs_spec_helper/tasks/fixtures.rb +14 -12
  13. data/lib/puppetlabs_spec_helper/version.rb +1 -6
  14. data/spec/acceptance/fixtures/Rakefile +3 -0
  15. data/spec/acceptance/smoke_spec.rb +14 -0
  16. data/spec/spec_helper.rb +53 -0
  17. data/spec/unit/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals_spec.rb +71 -0
  18. data/spec/unit/puppetlabs_spec_helper/tasks/check_symlinks_spec.rb +162 -0
  19. data/spec/unit/puppetlabs_spec_helper/tasks/check_test_file_spec.rb +45 -0
  20. data/spec/unit/puppetlabs_spec_helper/tasks/fixtures_spec.rb +262 -0
  21. data/spec/watchr.rb +81 -0
  22. metadata +32 -146
  23. data/.github/dependabot.yml +0 -15
  24. data/.gitignore +0 -9
  25. data/.noexec.yaml +0 -4
  26. data/.rspec +0 -2
  27. data/.rubocop_todo.yml +0 -119
  28. data/.travis.yml +0 -23
  29. data/CHANGELOG.md +0 -727
  30. data/CODEOWNERS +0 -2
  31. data/CONTRIBUTING.md +0 -14
  32. data/Gemfile +0 -42
  33. data/HISTORY.md +0 -498
  34. data/Rakefile +0 -45
  35. data/puppet_spec_helper.rb +0 -7
  36. data/puppetlabs_spec_helper.gemspec +0 -38
  37. data/puppetlabs_spec_helper.rb +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f07249eb1b0543bd0a6072bf0658b88024c85c2f10a65bbc93f435866453338
4
- data.tar.gz: 3fb65221a13f49fe034e5704132ca06e0adfe29f99c66bda0b9b018564937baa
3
+ metadata.gz: 73e959eb1c762c128c0b2a845e50b60f3d6e9ff4553af789f976e4023203a1dc
4
+ data.tar.gz: f7db17fb24bbdc582a30c60fc407a7c9f05c7c8d98430fc0f5a0f0151ffb9845
5
5
  SHA512:
6
- metadata.gz: 80a02ec1ff937f9000cc97c184af53a0844323127d11ab86ec336abbc946b58d5058fe91d11cf23480991a0bf541fd7281980df7f845a80083f81002d1ffcf2c
7
- data.tar.gz: 1425436924772050a6834fa3072ce749d185a9feb894fa6488b777b1c2cd82aef25890f06fba3c0df207838094be76f40caa018feda05ecb36e9280255d0b8a8
6
+ metadata.gz: ccb6d06693bed2078af4b49ff5f41bb93a3a630eb322ff1b3f0fd12e683190272b61c64a0e2233adf96af08a397edc637745bdb074f7cb880163decfe2944f9a
7
+ data.tar.gz: 0f29a0eb5882f6cb9fc7c11862aa4d2966067e342ea57f03abc4b62a8e28c119d9d52c4f72e4382d9412c3c3f29ca529747c81828f21cf48bd8e5d8f082faca7
data/.rubocop.yml CHANGED
@@ -1,155 +1,520 @@
1
- require: rubocop-rspec
2
- inherit_from: .rubocop_todo.yml
3
-
1
+ ---
2
+ require:
3
+ - rubocop-performance
4
+ - rubocop-rspec
4
5
  AllCops:
5
- TargetRubyVersion: 2.4
6
- # let dependabot find the rough spots for us
7
- NewCops: enable
6
+ DisplayCopNames: true
7
+ SuggestExtensions: false
8
+ TargetRubyVersion: '2.7'
9
+ Include:
10
+ - "**/*.rb"
8
11
  Exclude:
9
- # binstubs, and other utilities
10
- - bin/**/*
11
- - vendor/**/*
12
- - vendor/**/.*
13
- # Puppet util code follows Puppet's style, not pdk's
14
- - lib/puppet/**/*
15
- # package testing gems
16
- - package-testing/vendor/**/*
17
- - package-testing/vendor/**/.*
18
-
19
- # Metrics, excludes complexity and sizing metrics for now, as ruby's defaults are very strict
20
- Metrics/AbcSize:
21
- Enabled: False
22
-
23
- Metrics/BlockLength:
24
- Description: rspec uses long describe blocks, so allow long blocks under spec/
25
- Enabled: False
26
- Exclude:
27
- - 'spec/**/*.rb'
28
-
29
- Metrics/ClassLength:
30
- Enabled: False
31
-
32
- Metrics/CyclomaticComplexity:
33
- Enabled: False
34
-
35
- Metrics/LineLength:
12
+ - bin/*
13
+ - ".vendor/**/*"
14
+ - "**/Gemfile"
15
+ - "**/Rakefile"
16
+ - pkg/**/*
17
+ - spec/fixtures/**/*
18
+ - vendor/**/*
19
+ - "**/Puppetfile"
20
+ - "**/Vagrantfile"
21
+ - "**/Guardfile"
22
+ - '**/*.erb'
23
+ - 'lib/puppet-strings/yard/templates/**/*'
24
+ Layout/LineLength:
36
25
  Description: People have wide screens, use them.
37
26
  Max: 200
38
-
39
- Metrics/MethodLength:
40
- Enabled: False
41
-
42
- Metrics/ModuleLength:
43
- Enabled: False
44
-
45
- Metrics/ParameterLists:
46
- Enabled: False
47
-
48
- Metrics/PerceivedComplexity:
49
- Enabled: False
50
-
51
- # RSpec cops
52
27
  RSpec/BeforeAfterAll:
53
- Description: Beware of using after(:all) as it may cause state to leak between tests. A necessary evil in acceptance testing.
28
+ Description: Beware of using after(:all) as it may cause state to leak between tests.
29
+ A necessary evil in acceptance testing.
54
30
  Exclude:
55
- - 'spec/acceptance/**/*.rb'
56
- - 'package-testing/spec/package/**/*.rb'
57
-
58
- RSpec/DescribeClass:
59
- Description: This cop does not account for rspec-puppet, and beaker-rspec usage.
60
- Enabled: False
61
-
31
+ - spec/acceptance/**/*.rb
62
32
  RSpec/HookArgument:
63
33
  Description: Prefer explicit :each argument, matching existing module's style
64
34
  EnforcedStyle: each
65
-
66
- RSpec/NestedGroups:
67
- Description: Nested groups can lead to cleaner tests with less duplication
68
- Max: 10
69
-
70
- RSpec/ExampleLength:
71
- Description: Forcing short examples leads to the creation of one-time use let() helpers
72
- Enabled: False
73
-
74
- RSpec/MessageSpies:
75
- EnforcedStyle: receive
76
-
77
- # Style Cops
78
- Style/AsciiComments:
79
- Description: Names, non-english speaking communities.
80
- Enabled: False
81
-
82
35
  Style/BlockDelimiters:
83
- Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to be consistent then.
36
+ Description: Prefer braces for chaining. Mostly an aesthetical choice. Better to
37
+ be consistent then.
84
38
  EnforcedStyle: braces_for_chaining
85
-
86
39
  Style/ClassAndModuleChildren:
87
40
  Description: Compact style reduces the required amount of indentation.
88
41
  EnforcedStyle: compact
89
-
90
42
  Style/EmptyElse:
91
43
  Description: Enforce against empty else clauses, but allow `nil` for clarity.
92
44
  EnforcedStyle: empty
93
-
94
45
  Style/FormatString:
95
46
  Description: Following the main puppet project's style, prefer the % format format.
96
47
  EnforcedStyle: percent
97
-
98
48
  Style/FormatStringToken:
99
- Description: Following the main puppet project's style, prefer the simpler template tokens over annotated ones.
49
+ Description: Following the main puppet project's style, prefer the simpler template
50
+ tokens over annotated ones.
100
51
  EnforcedStyle: template
101
-
102
- Style/IfUnlessModifier:
103
- Description: Post-fix `if` modifiers are hard to parse for newcomers. We don't want to encourage them. Post-fix `unless` modifiers could be nice in some cases, but the Cop doesn't differentiate.
104
- Enabled: false
105
-
106
52
  Style/Lambda:
107
53
  Description: Prefer the keyword for easier discoverability.
108
54
  EnforcedStyle: literal
109
-
110
- Style/MethodCalledOnDoEndBlock:
111
- Enabled: true
112
-
113
55
  Style/RegexpLiteral:
114
56
  Description: Community preference. See https://github.com/voxpupuli/modulesync_config/issues/168
115
57
  EnforcedStyle: percent_r
116
-
117
- Style/SymbolProc:
118
- Description: SymbolProc notation is not discoverable
119
- Enabled: false
120
-
121
58
  Style/TernaryParentheses:
122
- Description: Checks for use of parentheses around ternary conditions. Enforce parentheses on complex expressions for better readability, but seriously consider breaking it up.
59
+ Description: Checks for use of parentheses around ternary conditions. Enforce parentheses
60
+ on complex expressions for better readability, but seriously consider breaking
61
+ it up.
123
62
  EnforcedStyle: require_parentheses_when_complex
124
-
125
63
  Style/TrailingCommaInArguments:
126
- Description: Prefer always trailing comma on multiline argument lists. This makes diffs, and re-ordering nicer.
64
+ Description: Prefer always trailing comma on multiline argument lists. This makes
65
+ diffs, and re-ordering nicer.
127
66
  EnforcedStyleForMultiline: comma
128
-
129
67
  Style/TrailingCommaInArrayLiteral:
130
- Description: Prefer always trailing comma on multiline literals. This makes diffs, and re-ordering nicer.
68
+ Description: Prefer always trailing comma on multiline literals. This makes diffs,
69
+ and re-ordering nicer.
131
70
  EnforcedStyleForMultiline: comma
132
-
133
- Style/TrailingCommaInHashLiteral:
134
- Description: Prefer always trailing comma on multiline literals. This makes diffs, and re-ordering nicer.
135
- EnforcedStyleForMultiline: comma
136
-
137
71
  Style/SymbolArray:
138
72
  Description: Using percent style obscures symbolic intent of array's contents.
139
- Enabled: true
140
73
  EnforcedStyle: brackets
141
-
142
- # Enforce LF line endings, even when on Windows
74
+ RSpec/MessageSpies:
75
+ EnforcedStyle: receive
76
+ Style/Documentation:
77
+ Exclude:
78
+ - spec/**/*
79
+ Style/WordArray:
80
+ EnforcedStyle: brackets
81
+ Performance/AncestorsInclude:
82
+ Enabled: true
83
+ Performance/BigDecimalWithNumericArgument:
84
+ Enabled: true
85
+ Performance/BlockGivenWithExplicitBlock:
86
+ Enabled: true
87
+ Performance/CaseWhenSplat:
88
+ Enabled: true
89
+ Performance/ConstantRegexp:
90
+ Enabled: true
91
+ Performance/MethodObjectAsBlock:
92
+ Enabled: true
93
+ Performance/RedundantSortBlock:
94
+ Enabled: true
95
+ Performance/RedundantStringChars:
96
+ Enabled: true
97
+ Performance/ReverseFirst:
98
+ Enabled: true
99
+ Performance/SortReverse:
100
+ Enabled: true
101
+ Performance/Squeeze:
102
+ Enabled: true
103
+ Performance/StringInclude:
104
+ Enabled: true
105
+ Performance/Sum:
106
+ Enabled: true
107
+ Style/CollectionMethods:
108
+ Enabled: true
109
+ Style/MethodCalledOnDoEndBlock:
110
+ Enabled: true
111
+ Style/StringMethods:
112
+ Enabled: true
113
+ Bundler/InsecureProtocolSource:
114
+ Enabled: false
115
+ Gemspec/DuplicatedAssignment:
116
+ Enabled: false
117
+ Gemspec/OrderedDependencies:
118
+ Enabled: false
119
+ Gemspec/RequiredRubyVersion:
120
+ Enabled: false
121
+ Gemspec/RubyVersionGlobalsUsage:
122
+ Enabled: false
123
+ Layout/ArgumentAlignment:
124
+ Enabled: false
125
+ Layout/BeginEndAlignment:
126
+ Enabled: false
127
+ Layout/ClosingHeredocIndentation:
128
+ Enabled: true
129
+ Layout/EmptyComment:
130
+ Enabled: false
131
+ Layout/EmptyLineAfterGuardClause:
132
+ Enabled: false
133
+ Layout/EmptyLinesAroundArguments:
134
+ Enabled: false
135
+ Layout/EmptyLinesAroundAttributeAccessor:
136
+ Enabled: false
143
137
  Layout/EndOfLine:
144
- EnforcedStyle: lf
145
-
146
- Style/AccessModifierDeclarations:
147
- EnforcedStyle: inline
148
-
138
+ Enabled: false
139
+ Layout/FirstArgumentIndentation:
140
+ Enabled: false
141
+ Layout/HashAlignment:
142
+ Enabled: false
143
+ Layout/HeredocIndentation:
144
+ Enabled: true
145
+ Layout/LeadingEmptyLines:
146
+ Enabled: false
147
+ Layout/SpaceAroundMethodCallOperator:
148
+ Enabled: false
149
+ Layout/SpaceInsideArrayLiteralBrackets:
150
+ Enabled: false
151
+ Layout/SpaceInsideReferenceBrackets:
152
+ Enabled: false
153
+ Lint/BigDecimalNew:
154
+ Enabled: false
155
+ Lint/BooleanSymbol:
156
+ Enabled: false
157
+ Lint/ConstantDefinitionInBlock:
158
+ Enabled: false
159
+ Lint/DeprecatedOpenSSLConstant:
160
+ Enabled: false
161
+ Lint/DisjunctiveAssignmentInConstructor:
162
+ Enabled: false
163
+ Lint/DuplicateElsifCondition:
164
+ Enabled: false
165
+ Lint/DuplicateRequire:
166
+ Enabled: false
167
+ Lint/DuplicateRescueException:
168
+ Enabled: false
169
+ Lint/EmptyConditionalBody:
170
+ Enabled: false
171
+ Lint/EmptyFile:
172
+ Enabled: false
173
+ Lint/ErbNewArguments:
174
+ Enabled: false
175
+ Lint/FloatComparison:
176
+ Enabled: false
177
+ Lint/HashCompareByIdentity:
178
+ Enabled: false
179
+ Lint/IdentityComparison:
180
+ Enabled: false
181
+ Lint/InterpolationCheck:
182
+ Enabled: false
183
+ Lint/MissingCopEnableDirective:
184
+ Enabled: false
185
+ Lint/MixedRegexpCaptureTypes:
186
+ Enabled: false
187
+ Lint/NestedPercentLiteral:
188
+ Enabled: false
189
+ Lint/NonDeterministicRequireOrder:
190
+ Enabled: false
191
+ Lint/OrderedMagicComments:
192
+ Enabled: false
193
+ Lint/OutOfRangeRegexpRef:
194
+ Enabled: false
195
+ Lint/RaiseException:
196
+ Enabled: false
197
+ Lint/RedundantCopEnableDirective:
198
+ Enabled: false
199
+ Lint/RedundantRequireStatement:
200
+ Enabled: false
201
+ Lint/RedundantSafeNavigation:
202
+ Enabled: false
203
+ Lint/RedundantWithIndex:
204
+ Enabled: false
205
+ Lint/RedundantWithObject:
206
+ Enabled: false
207
+ Lint/RegexpAsCondition:
208
+ Enabled: false
209
+ Lint/ReturnInVoidContext:
210
+ Enabled: false
211
+ Lint/SafeNavigationConsistency:
212
+ Enabled: false
213
+ Lint/SafeNavigationWithEmpty:
214
+ Enabled: false
215
+ Lint/SelfAssignment:
216
+ Enabled: false
217
+ Lint/SendWithMixinArgument:
218
+ Enabled: false
219
+ Lint/ShadowedArgument:
220
+ Enabled: false
221
+ Lint/StructNewOverride:
222
+ Enabled: false
223
+ Lint/ToJSON:
224
+ Enabled: false
225
+ Lint/TopLevelReturnWithArgument:
226
+ Enabled: false
227
+ Lint/TrailingCommaInAttributeDeclaration:
228
+ Enabled: false
229
+ Lint/UnreachableLoop:
230
+ Enabled: false
231
+ Lint/UriEscapeUnescape:
232
+ Enabled: false
233
+ Lint/UriRegexp:
234
+ Enabled: false
235
+ Lint/UselessMethodDefinition:
236
+ Enabled: false
237
+ Lint/UselessTimes:
238
+ Enabled: false
239
+ Metrics/AbcSize:
240
+ Enabled: false
241
+ Metrics/BlockLength:
242
+ Enabled: false
243
+ Metrics/BlockNesting:
244
+ Enabled: false
245
+ Metrics/ClassLength:
246
+ Enabled: false
247
+ Metrics/CyclomaticComplexity:
248
+ Enabled: false
249
+ Metrics/MethodLength:
250
+ Enabled: false
251
+ Metrics/ModuleLength:
252
+ Enabled: false
253
+ Metrics/ParameterLists:
254
+ Enabled: false
255
+ Metrics/PerceivedComplexity:
256
+ Enabled: false
257
+ Migration/DepartmentName:
258
+ Enabled: false
259
+ Naming/AccessorMethodName:
260
+ Enabled: false
261
+ Naming/BlockParameterName:
262
+ Enabled: false
263
+ Naming/HeredocDelimiterCase:
264
+ Enabled: false
265
+ Naming/HeredocDelimiterNaming:
266
+ Enabled: false
267
+ Naming/MemoizedInstanceVariableName:
268
+ Enabled: false
269
+ Naming/MethodParameterName:
270
+ Enabled: false
271
+ Naming/RescuedExceptionsVariableName:
272
+ Enabled: false
273
+ Naming/VariableNumber:
274
+ Enabled: false
275
+ Performance/BindCall:
276
+ Enabled: false
277
+ Performance/DeletePrefix:
278
+ Enabled: false
279
+ Performance/DeleteSuffix:
280
+ Enabled: false
281
+ Performance/InefficientHashSearch:
282
+ Enabled: false
283
+ Performance/UnfreezeString:
284
+ Enabled: false
285
+ Performance/UriDefaultParser:
286
+ Enabled: false
287
+ RSpec/Be:
288
+ Enabled: false
289
+ RSpec/Capybara/CurrentPathExpectation:
290
+ Enabled: false
291
+ RSpec/Capybara/FeatureMethods:
292
+ Enabled: false
293
+ RSpec/Capybara/VisibilityMatcher:
294
+ Enabled: false
295
+ RSpec/ContextMethod:
296
+ Enabled: false
149
297
  RSpec/ContextWording:
150
- Prefixes:
151
- - and
152
- - but
153
- - when
154
- - with
155
- - without
298
+ Enabled: false
299
+ RSpec/DescribeClass:
300
+ Enabled: false
301
+ RSpec/EmptyHook:
302
+ Enabled: false
303
+ RSpec/EmptyLineAfterExample:
304
+ Enabled: false
305
+ RSpec/EmptyLineAfterExampleGroup:
306
+ Enabled: false
307
+ RSpec/EmptyLineAfterHook:
308
+ Enabled: false
309
+ RSpec/ExampleLength:
310
+ Enabled: false
311
+ RSpec/ExampleWithoutDescription:
312
+ Enabled: false
313
+ RSpec/ExpectChange:
314
+ Enabled: false
315
+ RSpec/ExpectInHook:
316
+ Enabled: false
317
+ RSpec/FactoryBot/AttributeDefinedStatically:
318
+ Enabled: false
319
+ RSpec/FactoryBot/CreateList:
320
+ Enabled: false
321
+ RSpec/FactoryBot/FactoryClassName:
322
+ Enabled: false
323
+ RSpec/FilePath:
324
+ Enabled: false
325
+ RSpec/HooksBeforeExamples:
326
+ Enabled: false
327
+ RSpec/ImplicitBlockExpectation:
328
+ Enabled: false
329
+ RSpec/ImplicitSubject:
330
+ Enabled: false
331
+ RSpec/LeakyConstantDeclaration:
332
+ Enabled: false
333
+ RSpec/LetBeforeExamples:
334
+ Enabled: false
335
+ RSpec/MissingExampleGroupArgument:
336
+ Enabled: false
337
+ RSpec/MultipleExpectations:
338
+ Enabled: false
339
+ RSpec/MultipleMemoizedHelpers:
340
+ Enabled: false
341
+ RSpec/MultipleSubjects:
342
+ Enabled: false
343
+ RSpec/NestedGroups:
344
+ Enabled: false
345
+ RSpec/PredicateMatcher:
346
+ Enabled: false
347
+ RSpec/ReceiveCounts:
348
+ Enabled: false
349
+ RSpec/ReceiveNever:
350
+ Enabled: false
351
+ RSpec/RepeatedExampleGroupBody:
352
+ Enabled: false
353
+ RSpec/RepeatedExampleGroupDescription:
354
+ Enabled: false
355
+ RSpec/RepeatedIncludeExample:
356
+ Enabled: false
357
+ RSpec/ReturnFromStub:
358
+ Enabled: false
359
+ RSpec/SharedExamples:
360
+ Enabled: false
361
+ RSpec/StubbedMock:
362
+ Enabled: false
363
+ RSpec/UnspecifiedException:
364
+ Enabled: false
365
+ RSpec/VariableDefinition:
366
+ Enabled: false
367
+ RSpec/VoidExpect:
368
+ Enabled: false
369
+ RSpec/Yield:
370
+ Enabled: false
371
+ Security/Open:
372
+ Enabled: false
373
+ Style/AccessModifierDeclarations:
374
+ Enabled: false
375
+ Style/AccessorGrouping:
376
+ Enabled: false
377
+ Style/AsciiComments:
378
+ Enabled: false
379
+ Style/BisectedAttrAccessor:
380
+ Enabled: false
381
+ Style/CaseLikeIf:
382
+ Enabled: false
383
+ Style/ClassEqualityComparison:
384
+ Enabled: false
385
+ Style/ColonMethodDefinition:
386
+ Enabled: false
387
+ Style/CombinableLoops:
388
+ Enabled: false
389
+ Style/CommentedKeyword:
390
+ Enabled: false
391
+ Style/Dir:
392
+ Enabled: false
393
+ Style/DoubleCopDisableDirective:
394
+ Enabled: false
395
+ Style/EmptyBlockParameter:
396
+ Enabled: false
397
+ Style/EmptyLambdaParameter:
398
+ Enabled: false
399
+ Style/Encoding:
400
+ Enabled: false
401
+ Style/EvalWithLocation:
402
+ Enabled: false
403
+ Style/ExpandPathArguments:
404
+ Enabled: false
405
+ Style/ExplicitBlockArgument:
406
+ Enabled: false
407
+ Style/ExponentialNotation:
408
+ Enabled: false
409
+ Style/FloatDivision:
410
+ Enabled: false
411
+ Style/FrozenStringLiteralComment:
412
+ Enabled: false
413
+ Style/GlobalStdStream:
414
+ Enabled: false
415
+ Style/HashAsLastArrayItem:
416
+ Enabled: false
417
+ Style/HashLikeCase:
418
+ Enabled: false
419
+ Style/HashTransformKeys:
420
+ Enabled: false
421
+ Style/HashTransformValues:
422
+ Enabled: false
423
+ Style/IfUnlessModifier:
424
+ Enabled: false
425
+ Style/KeywordParametersOrder:
426
+ Enabled: false
427
+ Style/MinMax:
428
+ Enabled: false
429
+ Style/MixinUsage:
430
+ Enabled: false
431
+ Style/MultilineWhenThen:
432
+ Enabled: false
433
+ Style/NegatedUnless:
434
+ Enabled: false
435
+ Style/NumericPredicate:
436
+ Enabled: false
437
+ Style/OptionalBooleanParameter:
438
+ Enabled: false
439
+ Style/OrAssignment:
440
+ Enabled: false
441
+ Style/RandomWithOffset:
442
+ Enabled: false
443
+ Style/RedundantAssignment:
444
+ Enabled: false
445
+ Style/RedundantCondition:
446
+ Enabled: false
447
+ Style/RedundantConditional:
448
+ Enabled: false
449
+ Style/RedundantFetchBlock:
450
+ Enabled: false
451
+ Style/RedundantFileExtensionInRequire:
452
+ Enabled: false
453
+ Style/RedundantRegexpCharacterClass:
454
+ Enabled: false
455
+ Style/RedundantRegexpEscape:
456
+ Enabled: false
457
+ Style/RedundantSelfAssignment:
458
+ Enabled: false
459
+ Style/RedundantSort:
460
+ Enabled: false
461
+ Style/RescueStandardError:
462
+ Enabled: false
463
+ Style/SingleArgumentDig:
464
+ Enabled: false
465
+ Style/SlicingWithRange:
466
+ Enabled: false
467
+ Style/SoleNestedConditional:
468
+ Enabled: false
469
+ Style/StderrPuts:
470
+ Enabled: false
471
+ Style/StringConcatenation:
472
+ Enabled: false
473
+ Style/Strip:
474
+ Enabled: false
475
+ Style/SymbolProc:
476
+ Enabled: false
477
+ Style/TrailingBodyOnClass:
478
+ Enabled: false
479
+ Style/TrailingBodyOnMethodDefinition:
480
+ Enabled: false
481
+ Style/TrailingBodyOnModule:
482
+ Enabled: false
483
+ Style/TrailingCommaInHashLiteral:
484
+ Enabled: false
485
+ Style/TrailingMethodEndStatement:
486
+ Enabled: false
487
+ Style/UnpackFirst:
488
+ Enabled: false
489
+ Lint/DuplicateBranch:
490
+ Enabled: false
491
+ Lint/DuplicateRegexpCharacterClassElement:
492
+ Enabled: false
493
+ Lint/EmptyBlock:
494
+ Enabled: false
495
+ Lint/EmptyClass:
496
+ Enabled: false
497
+ Lint/NoReturnInBeginEndBlocks:
498
+ Enabled: false
499
+ Lint/ToEnumArguments:
500
+ Enabled: false
501
+ Lint/UnexpectedBlockArity:
502
+ Enabled: false
503
+ Lint/UnmodifiedReduceAccumulator:
504
+ Enabled: false
505
+ Performance/CollectionLiteralInLoop:
506
+ Enabled: false
507
+ Style/ArgumentsForwarding:
508
+ Enabled: false
509
+ Style/CollectionCompact:
510
+ Enabled: false
511
+ Style/DocumentDynamicEvalDefinition:
512
+ Enabled: false
513
+ Style/NegatedIfElseCondition:
514
+ Enabled: false
515
+ Style/NilLambda:
516
+ Enabled: false
517
+ Style/RedundantArgument:
518
+ Enabled: false
519
+ Style/SwapValues:
520
+ Enabled: false
data/README.md CHANGED
@@ -141,31 +141,17 @@ A number of the Puppet parser features, controlled via configuration during a
141
141
  normal puppet run, can be controlled by exporting specific environment
142
142
  variables for the spec run. These are:
143
143
 
144
- * ``STRICT_VARIABLES`` - set to "yes" to enable set to strict variable checking when using Puppet versions between 3.5 and 4.0;
145
- set to "no" to disable strict variable checking on Puppet versions 4.0, and later.
146
- See [strict_variables](http://docs.puppetlabs.com/references/latest/configuration.html#strictvariables)
147
- in puppet.conf for details.
144
+ * ``STRICT_VARIABLES`` - Set to "no" to disable strict variable checking.
145
+ See [strict_variables](http://docs.puppetlabs.com/references/latest/configuration.html#strictvariables) in puppet.conf for details.
148
146
  * ``ORDERING`` - set to the desired ordering method ("title-hash", "manifest", or "random")
149
147
  to set the order of unrelated resources when applying a catalog. Leave unset for the default
150
148
  behavior, currently "random". This is equivalent to setting [ordering](http://docs.puppetlabs.com/references/latest/configuration.html#ordering)
151
149
  in puppet.conf.
152
- * The following options only affect Puppet 3.x:
153
- * ``FUTURE_PARSER`` _(Puppet 3.x, starting with 3.2)_ - set to "yes" to enable the [future parser](https://docs.puppet.com/puppet/3/experiments_future.html),
154
- the equivalent of setting [parser=future](https://puppet.com/docs/puppet/3.8/configuration.html#parser)
155
- in puppet.conf.
156
- * ``TRUSTED_NODE_DATA`` _(Puppet 3.x, starting with 3.4)_ - set to "yes" to enable [the $facts hash and trusted node data](https://puppet.com/docs/puppet/3.8/lang_facts_and_builtin_vars.html#trusted-facts),
157
- which enabled ``$facts`` and ``$trusted`` hashes. This is equivalent to setting
158
- [trusted_node_data=true](https://puppet.com/docs/puppet/3.8/configuration.html#trustednodedata)
159
- in puppet.conf.
160
- * ``STRINGIFY_FACTS`` _(Puppet 3.x, starting with 3.5)_ - set to "no" to enable [structured facts](http://docs.puppetlabs.com/facter/2.0/fact_overview.html#writing-structured-facts),
161
- otherwise leave unset to retain the current default behavior. This is equivalent to setting
162
- [stringify_facts=false](https://puppet.com/docs/puppet/3.8/configuration.html#stringifyfacts)
163
- in puppet.conf.
164
-
165
- As an example, to run spec tests with the future parser, strict variable checking,
150
+
151
+ As an example, to run spec tests with the future parser, strict variable checking,
166
152
  and manifest ordering, you would:
167
153
 
168
- FUTURE_PARSER=yes STRICT_VARIABLES=yes ORDERING=manifest rake spec
154
+ ORDERING=manifest rake spec
169
155
 
170
156
 
171
157
  Using Utility Classes