Enable metadata linting
This commit is contained in:
parent
7be6514c4a
commit
f0d392476c
2 changed files with 3 additions and 1 deletions
1
Gemfile
1
Gemfile
|
@ -12,5 +12,6 @@ gem 'rspec-puppet', '~> 2.0'
|
|||
gem 'puppetlabs_spec_helper', '>= 0.1.0'
|
||||
gem 'puppet-lint', '>= 1'
|
||||
gem 'facter', '>= 1.7.0'
|
||||
gem 'metadata-json-lint'
|
||||
|
||||
gem 'puppet-lint-strict_indent-check'
|
||||
|
|
3
Rakefile
3
Rakefile
|
@ -1,6 +1,7 @@
|
|||
require 'rubygems'
|
||||
require 'puppetlabs_spec_helper/rake_tasks'
|
||||
require 'puppet-lint/tasks/puppet-lint'
|
||||
require 'metadata-json-lint/rake_task'
|
||||
|
||||
if not ENV['SPEC_OPTS']
|
||||
ENV['SPEC_OPTS'] = '--format documentation'
|
||||
|
@ -18,4 +19,4 @@ PuppetLint::RakeTask.new :lint do |config|
|
|||
config.ignore_paths = PuppetLint.configuration.ignore_paths
|
||||
end
|
||||
|
||||
task :all => [ :validate, :lint, :spec ]
|
||||
task :all => [ :validate, :metadata, :lint, :spec ]
|
||||
|
|
Loading…
Reference in a new issue