]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
(GH-cat-9) syntax:hiera:yaml exclusions added
authordavid22swan <david.swan@puppet.com>
Thu, 21 Apr 2022 09:07:03 +0000 (10:07 +0100)
committerdavid22swan <david.swan@puppet.com>
Thu, 21 Apr 2022 09:07:03 +0000 (10:07 +0100)
.puppet-lint.rc
.sync.yml
Rakefile
metadata.json

index cc96ece0513d69709b87af611173e2a6e4532f62..feb502c4f30fe0afbd4027968d6fbe2208e1c5bd 100644 (file)
@@ -1 +1,5 @@
 --relative
+--no-relative_classname_inclusion-check
+--no-parameter_types-check
+--no-top_scope_facts-check
+--no-legacy_facts-check
index 247b988b81ea74ea8120bd3c85ac6b251251df13..0a986c4722525667d83bfee92cce7de9e899e43f 100644 (file)
--- a/.sync.yml
+++ b/.sync.yml
@@ -31,3 +31,9 @@ spec/spec_helper.rb:
 .travis.yml:
   delete: true
 changelog_since_tag: 'v3.0.0'
+Rakefile:
+  extra_disabled_lint_checks:
+    - relative_classname_inclusion
+    - parameter_types
+    - top_scope_facts
+    - legacy_facts
index de931720b61abbf9df131e23ed008c4e40dc9347..7fc43e080e738d2ebb1de245710522b47e8728f3 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -10,7 +10,7 @@ require 'puppet-strings/tasks' if Bundler.rubygems.find_name('puppet-strings').a
 
 def changelog_user
   return unless Rake.application.top_level_tasks.include? "changelog"
-  returnVal = "puppetlabs" || JSON.load(File.read('metadata.json'))['author']
+  returnVal = nil || JSON.load(File.read('metadata.json'))['author']
   raise "unable to find the changelog_user in .sync.yml, or the author in metadata.json" if returnVal.nil?
   puts "GitHubChangelogGenerator user:#{returnVal}"
   returnVal
@@ -42,6 +42,10 @@ def changelog_future_release
 end
 
 PuppetLint.configuration.send('disable_relative')
+PuppetLint.configuration.send('disable_relative_classname_inclusion')
+PuppetLint.configuration.send('disable_parameter_types')
+PuppetLint.configuration.send('disable_top_scope_facts')
+PuppetLint.configuration.send('disable_legacy_facts')
 
 
 if Bundler.rubygems.find_name('github_changelog_generator').any?
@@ -50,7 +54,6 @@ if Bundler.rubygems.find_name('github_changelog_generator').any?
     config.user = "#{changelog_user}"
     config.project = "#{changelog_project}"
     config.since_tag = "v3.0.0"
-    config.max_issues = 500
     config.future_release = "#{changelog_future_release}"
     config.exclude_labels = ['maintenance']
     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)."
index 57c2cee848727cffaa44b8d2b0a37df63f895248..da986ef0a1faf439ff38aa06f36a50c35a1f10b0 100644 (file)
@@ -86,5 +86,5 @@
   ],
   "template-url": "https://github.com/puppetlabs/pdk-templates.git#main",
   "template-ref": "heads/main-0-g806810b",
-  "pdk-version": "2.3.0"
+  "pdk-version": "2.4.0"
 }