Browse Source

Enable metadata linting

Markus Frosch 8 years ago
parent
commit
f0d392476c
2 changed files with 3 additions and 1 deletions
  1. 1 0
      Gemfile
  2. 2 1
      Rakefile

+ 1 - 0
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'

+ 2 - 1
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 ]