Skip to content

Commit 0cda7bd

Browse files
authored
Merge pull request #1220 from puppetlabs/pdksync
Update to puppet-module-gems 1.0, pdk-templates and new rubocop
2 parents 7d6e875 + 206a890 commit 0cda7bd

File tree

90 files changed

+298
-197
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+298
-197
lines changed

.github/workflows/nightly.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
steps:
1919
- name: "Honeycomb: Start recording"
20-
uses: kvrhdn/gha-buildevents@5be4636b81803713c94d7cb7e3a4b85d759df112 # pin@v1.0.2
20+
uses: puppetlabs/kvrhdn-gha-buildevents@pdk-templates-v1
2121
with:
2222
apikey: ${{ env.HONEYCOMB_WRITEKEY }}
2323
dataset: ${{ env.HONEYCOMB_DATASET }}
@@ -90,7 +90,7 @@ jobs:
9090
echo 'collection=${{ matrix.collection }}' >> $BUILDEVENT_FILE
9191
9292
- name: "Honeycomb: Start recording"
93-
uses: kvrhdn/gha-buildevents@5be4636b81803713c94d7cb7e3a4b85d759df112 # pin@v1.0.2
93+
uses: puppetlabs/kvrhdn-gha-buildevents@pdk-templates-v1
9494
with:
9595
apikey: ${{ env.HONEYCOMB_WRITEKEY }}
9696
dataset: ${{ env.HONEYCOMB_DATASET }}
@@ -207,7 +207,7 @@ jobs:
207207
runs-on: ubuntu-20.04
208208
steps:
209209
- name: Slack Workflow Notification
210-
uses: Gamesight/slack-workflow-status@88ee95b73b4669825883ddf22747966204663e58 # pin@master
210+
uses: puppetlabs/Gamesight-slack-workflow-status@pdk-templates-v1
211211
with:
212212
# Required Input
213213
repo_token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/pr_test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: "Honeycomb: Start recording"
18-
uses: kvrhdn/gha-buildevents@5be4636b81803713c94d7cb7e3a4b85d759df112 # pin@v1.0.2
18+
uses: puppetlabs/kvrhdn-gha-buildevents@pdk-templates-v1
1919
with:
2020
apikey: ${{ env.HONEYCOMB_WRITEKEY }}
2121
dataset: ${{ env.HONEYCOMB_DATASET }}
@@ -57,7 +57,6 @@ jobs:
5757
5858
- name: Setup Acceptance Test Matrix
5959
id: get-matrix
60-
if: ${{ github.repository_owner == 'puppetlabs' }}
6160
run: |
6261
if [ '${{ github.repository_owner }}' == 'puppetlabs' ]; then
6362
buildevents cmd $TRACE_ID $STEP_ID matrix_from_metadata -- bundle exec matrix_from_metadata
@@ -73,6 +72,7 @@ jobs:
7372
Acceptance:
7473
needs:
7574
- setup_matrix
75+
if: ${{ needs.setup_matrix.outputs.matrix != '{}' }}
7676

7777
runs-on: ubuntu-20.04
7878
strategy:
@@ -88,7 +88,7 @@ jobs:
8888
echo 'collection=${{ matrix.collection }}' >> $BUILDEVENT_FILE
8989
9090
- name: "Honeycomb: Start recording"
91-
uses: kvrhdn/gha-buildevents@5be4636b81803713c94d7cb7e3a4b85d759df112 # pin@v1.0.2
91+
uses: puppetlabs/kvrhdn-gha-buildevents@pdk-templates-v1
9292
with:
9393
apikey: ${{ env.HONEYCOMB_WRITEKEY }}
9494
dataset: ${{ env.HONEYCOMB_DATASET }}

.rubocop.yml

Lines changed: 50 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ Style/TrailingCommaInArrayLiteral:
6868
Style/SymbolArray:
6969
Description: Using percent style obscures symbolic intent of array's contents.
7070
EnforcedStyle: brackets
71-
inherit_from: ".rubocop_todo.yml"
7271
RSpec/MessageSpies:
7372
EnforcedStyle: receive
7473
Style/Documentation:
@@ -83,66 +82,26 @@ Performance/BigDecimalWithNumericArgument:
8382
Enabled: true
8483
Performance/BlockGivenWithExplicitBlock:
8584
Enabled: true
86-
Performance/Caller:
87-
Enabled: true
8885
Performance/CaseWhenSplat:
8986
Enabled: true
90-
Performance/Casecmp:
91-
Enabled: true
92-
Performance/CollectionLiteralInLoop:
93-
Enabled: true
94-
Performance/CompareWithBlock:
95-
Enabled: true
9687
Performance/ConstantRegexp:
9788
Enabled: true
98-
Performance/Count:
99-
Enabled: true
100-
Performance/Detect:
101-
Enabled: true
102-
Performance/DoubleStartEndWith:
103-
Enabled: true
104-
Performance/EndWith:
105-
Enabled: true
106-
Performance/FixedSize:
107-
Enabled: true
108-
Performance/FlatMap:
109-
Enabled: true
11089
Performance/MethodObjectAsBlock:
11190
Enabled: true
112-
Performance/RangeInclude:
113-
Enabled: true
114-
Performance/RedundantBlockCall:
115-
Enabled: true
116-
Performance/RedundantMatch:
117-
Enabled: true
118-
Performance/RedundantMerge:
119-
Enabled: true
12091
Performance/RedundantSortBlock:
12192
Enabled: true
12293
Performance/RedundantStringChars:
12394
Enabled: true
124-
Performance/RegexpMatch:
125-
Enabled: true
126-
Performance/ReverseEach:
127-
Enabled: true
12895
Performance/ReverseFirst:
12996
Enabled: true
130-
Performance/Size:
131-
Enabled: true
13297
Performance/SortReverse:
13398
Enabled: true
13499
Performance/Squeeze:
135100
Enabled: true
136-
Performance/StartWith:
137-
Enabled: true
138101
Performance/StringInclude:
139102
Enabled: true
140-
Performance/StringReplacement:
141-
Enabled: true
142103
Performance/Sum:
143104
Enabled: true
144-
Performance/TimesMap:
145-
Enabled: true
146105
Style/CollectionMethods:
147106
Enabled: true
148107
Style/MethodCalledOnDoEndBlock:
@@ -199,20 +158,12 @@ Lint/DeprecatedOpenSSLConstant:
199158
Enabled: false
200159
Lint/DisjunctiveAssignmentInConstructor:
201160
Enabled: false
202-
Lint/DuplicateBranch:
203-
Enabled: false
204161
Lint/DuplicateElsifCondition:
205162
Enabled: false
206-
Lint/DuplicateRegexpCharacterClassElement:
207-
Enabled: false
208163
Lint/DuplicateRequire:
209164
Enabled: false
210165
Lint/DuplicateRescueException:
211166
Enabled: false
212-
Lint/EmptyBlock:
213-
Enabled: false
214-
Lint/EmptyClass:
215-
Enabled: false
216167
Lint/EmptyConditionalBody:
217168
Enabled: false
218169
Lint/EmptyFile:
@@ -233,8 +184,6 @@ Lint/MixedRegexpCaptureTypes:
233184
Enabled: false
234185
Lint/NestedPercentLiteral:
235186
Enabled: false
236-
Lint/NoReturnInBeginEndBlocks:
237-
Enabled: false
238187
Lint/NonDeterministicRequireOrder:
239188
Enabled: false
240189
Lint/OrderedMagicComments:
@@ -269,18 +218,12 @@ Lint/ShadowedArgument:
269218
Enabled: false
270219
Lint/StructNewOverride:
271220
Enabled: false
272-
Lint/ToEnumArguments:
273-
Enabled: false
274221
Lint/ToJSON:
275222
Enabled: false
276223
Lint/TopLevelReturnWithArgument:
277224
Enabled: false
278225
Lint/TrailingCommaInAttributeDeclaration:
279226
Enabled: false
280-
Lint/UnexpectedBlockArity:
281-
Enabled: false
282-
Lint/UnmodifiedReduceAccumulator:
283-
Enabled: false
284227
Lint/UnreachableLoop:
285228
Enabled: false
286229
Lint/UriEscapeUnescape:
@@ -295,6 +238,8 @@ Metrics/AbcSize:
295238
Enabled: false
296239
Metrics/BlockLength:
297240
Enabled: false
241+
Metrics/BlockNesting:
242+
Enabled: false
298243
Metrics/ClassLength:
299244
Enabled: false
300245
Metrics/CyclomaticComplexity:
@@ -309,6 +254,8 @@ Metrics/PerceivedComplexity:
309254
Enabled: false
310255
Migration/DepartmentName:
311256
Enabled: false
257+
Naming/AccessorMethodName:
258+
Enabled: false
312259
Naming/BlockParameterName:
313260
Enabled: false
314261
Naming/HeredocDelimiterCase:
@@ -321,6 +268,20 @@ Naming/MethodParameterName:
321268
Enabled: false
322269
Naming/RescuedExceptionsVariableName:
323270
Enabled: false
271+
Naming/VariableNumber:
272+
Enabled: false
273+
Performance/BindCall:
274+
Enabled: false
275+
Performance/DeletePrefix:
276+
Enabled: false
277+
Performance/DeleteSuffix:
278+
Enabled: false
279+
Performance/InefficientHashSearch:
280+
Enabled: false
281+
Performance/UnfreezeString:
282+
Enabled: false
283+
Performance/UriDefaultParser:
284+
Enabled: false
324285
RSpec/Be:
325286
Enabled: false
326287
RSpec/Capybara/CurrentPathExpectation:
@@ -409,8 +370,6 @@ Style/AccessModifierDeclarations:
409370
Enabled: false
410371
Style/AccessorGrouping:
411372
Enabled: false
412-
Style/ArgumentsForwarding:
413-
Enabled: false
414373
Style/AsciiComments:
415374
Enabled: false
416375
Style/BisectedAttrAccessor:
@@ -419,8 +378,6 @@ Style/CaseLikeIf:
419378
Enabled: false
420379
Style/ClassEqualityComparison:
421380
Enabled: false
422-
Style/CollectionCompact:
423-
Enabled: false
424381
Style/ColonMethodDefinition:
425382
Enabled: false
426383
Style/CombinableLoops:
@@ -429,8 +386,6 @@ Style/CommentedKeyword:
429386
Enabled: false
430387
Style/Dir:
431388
Enabled: false
432-
Style/DocumentDynamicEvalDefinition:
433-
Enabled: false
434389
Style/DoubleCopDisableDirective:
435390
Enabled: false
436391
Style/EmptyBlockParameter:
@@ -469,12 +424,8 @@ Style/MixinUsage:
469424
Enabled: false
470425
Style/MultilineWhenThen:
471426
Enabled: false
472-
Style/NegatedIfElseCondition:
473-
Enabled: false
474427
Style/NegatedUnless:
475428
Enabled: false
476-
Style/NilLambda:
477-
Enabled: false
478429
Style/NumericPredicate:
479430
Enabled: false
480431
Style/OptionalBooleanParameter:
@@ -483,8 +434,6 @@ Style/OrAssignment:
483434
Enabled: false
484435
Style/RandomWithOffset:
485436
Enabled: false
486-
Style/RedundantArgument:
487-
Enabled: false
488437
Style/RedundantAssignment:
489438
Enabled: false
490439
Style/RedundantCondition:
@@ -517,8 +466,6 @@ Style/StringConcatenation:
517466
Enabled: false
518467
Style/Strip:
519468
Enabled: false
520-
Style/SwapValues:
521-
Enabled: false
522469
Style/SymbolProc:
523470
Enabled: false
524471
Style/TrailingBodyOnClass:
@@ -533,3 +480,35 @@ Style/TrailingMethodEndStatement:
533480
Enabled: false
534481
Style/UnpackFirst:
535482
Enabled: false
483+
Lint/DuplicateBranch:
484+
Enabled: false
485+
Lint/DuplicateRegexpCharacterClassElement:
486+
Enabled: false
487+
Lint/EmptyBlock:
488+
Enabled: false
489+
Lint/EmptyClass:
490+
Enabled: false
491+
Lint/NoReturnInBeginEndBlocks:
492+
Enabled: false
493+
Lint/ToEnumArguments:
494+
Enabled: false
495+
Lint/UnexpectedBlockArity:
496+
Enabled: false
497+
Lint/UnmodifiedReduceAccumulator:
498+
Enabled: false
499+
Performance/CollectionLiteralInLoop:
500+
Enabled: false
501+
Style/ArgumentsForwarding:
502+
Enabled: false
503+
Style/CollectionCompact:
504+
Enabled: false
505+
Style/DocumentDynamicEvalDefinition:
506+
Enabled: false
507+
Style/NegatedIfElseCondition:
508+
Enabled: false
509+
Style/NilLambda:
510+
Enabled: false
511+
Style/RedundantArgument:
512+
Enabled: false
513+
Style/SwapValues:
514+
Enabled: false

.rubocop_todo.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

.sync.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
---
22
".gitlab-ci.yml":
33
delete: true
4-
".rubocop.yml":
5-
default_configs:
6-
inherit_from: ".rubocop_todo.yml"
7-
require:
8-
- rubocop-rspec
94
".travis.yml":
105
global_env:
116
- HONEYCOMB_WRITEKEY="7f3c63a70eecc61d635917de46bea4e6",HONEYCOMB_DATASET="litmus tests"
@@ -43,12 +38,7 @@ Gemfile:
4338
optional:
4439
":development":
4540
- gem: github_changelog_generator
46-
git: https://github.com/skywinder/github-changelog-generator
47-
ref: 20ee04ba1234e9e83eb2ffb5056e23d641c7a018
48-
condition: Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.2.2')
4941
Rakefile:
50-
extras:
51-
"FastGettext.default_text_domain = 'default-text-domain'"
5242
changelog_user: puppetlabs
5343
spec/spec_helper.rb:
5444
mock_with: ":rspec"

0 commit comments

Comments
 (0)