Enable metadata linting

This commit is contained in:
Markus Frosch 2015-10-30 10:35:24 +01:00
parent 7be6514c4a
commit f0d392476c
2 changed files with 3 additions and 1 deletions

View file

@ -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'

View file

@ -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 ]