Skip to content

Commit 9ef417c

Browse files
committed
(GH-cat-9) syntax:hiera:yaml exclusions added
1 parent 568a14e commit 9ef417c

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

.puppet-lint.rc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
--relative
2+
--no-parameter_types-check
3+
--no-parameter_documentation-check
4+
--no-anchor_resource-check
5+
--no-params_empty_string_assignment-check

.sync.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,9 @@ spec/spec_helper.rb:
5858
unmanaged: false
5959
.travis.yml:
6060
delete: true
61+
Rakefile:
62+
extra_disabled_lint_checks:
63+
- parameter_types
64+
- parameter_documentation
65+
- anchor_resource
66+
- params_empty_string_assignment

Rakefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require 'puppet-strings/tasks' if Bundler.rubygems.find_name('puppet-strings').a
1010

1111
def changelog_user
1212
return unless Rake.application.top_level_tasks.include? "changelog"
13-
returnVal = "puppetlabs" || JSON.load(File.read('metadata.json'))['author']
13+
returnVal = nil || JSON.load(File.read('metadata.json'))['author']
1414
raise "unable to find the changelog_user in .sync.yml, or the author in metadata.json" if returnVal.nil?
1515
puts "GitHubChangelogGenerator user:#{returnVal}"
1616
returnVal
@@ -42,14 +42,17 @@ def changelog_future_release
4242
end
4343

4444
PuppetLint.configuration.send('disable_relative')
45+
PuppetLint.configuration.send('disable_parameter_types')
46+
PuppetLint.configuration.send('disable_parameter_documentation')
47+
PuppetLint.configuration.send('disable_anchor_resource')
48+
PuppetLint.configuration.send('disable_params_empty_string_assignment')
4549

4650

4751
if Bundler.rubygems.find_name('github_changelog_generator').any?
4852
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
4953
raise "Set CHANGELOG_GITHUB_TOKEN environment variable eg 'export CHANGELOG_GITHUB_TOKEN=valid_token_here'" if Rake.application.top_level_tasks.include? "changelog" and ENV['CHANGELOG_GITHUB_TOKEN'].nil?
5054
config.user = "#{changelog_user}"
5155
config.project = "#{changelog_project}"
52-
config.max_issues = 500
5356
config.future_release = "#{changelog_future_release}"
5457
config.exclude_labels = ['maintenance']
5558
config.header = "# Change log\n\nAll notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org)."

metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"version_requirement": ">= 6.0.0 < 8.0.0"
9393
}
9494
],
95-
"pdk-version": "2.3.0",
95+
"pdk-version": "2.4.0",
9696
"template-url": "https://github.com/puppetlabs/pdk-templates#main",
9797
"template-ref": "heads/main-0-g806810b"
9898
}

0 commit comments

Comments
 (0)