Skip to content

Commit

Permalink
puppet-syntax: Validate Hiera keys
Browse files Browse the repository at this point in the history
This is a new option in puppet-syntax 4.1.0:
voxpupuli/puppet-syntax#143

It will be enabled in puppet-syntax 5 be default:
voxpupuli/puppet-syntax#167
  • Loading branch information
bastelfreak committed Mar 12, 2024
1 parent 7863f3f commit 65ca136
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/puppetlabs_spec_helper/rake_tasks.rb
Expand Up @@ -193,6 +193,7 @@
PuppetSyntax.exclude_paths << '.vendor/**/*'
PuppetSyntax.exclude_paths << 'plans/**/*'
PuppetSyntax.check_hiera_keys = true
PuppetSyntax.check_hiera_data = true

desc 'Check syntax of Ruby files and call :syntax and :metadata_lint'
task :validate do
Expand Down
2 changes: 1 addition & 1 deletion puppetlabs_spec_helper.gemspec
Expand Up @@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
spec.add_runtime_dependency 'mocha', '~> 1.0'
spec.add_runtime_dependency 'pathspec', '>= 0.2', '< 2.0.0'
spec.add_runtime_dependency 'puppet-lint', '~> 4.0'
spec.add_runtime_dependency 'puppet-syntax', '~> 4.0'
spec.add_runtime_dependency 'puppet-syntax', '~> 4.1'
spec.add_runtime_dependency 'rspec-github', '~> 2.0'
spec.add_runtime_dependency 'rspec-puppet', '~> 4.0'

Expand Down

0 comments on commit 65ca136

Please sign in to comment.