From f0d392476cd70f94ae795be38caa5acf31f26998 Mon Sep 17 00:00:00 2001 From: Markus Frosch Date: Fri, 30 Oct 2015 10:35:24 +0100 Subject: [PATCH] Enable metadata linting --- Gemfile | 1 + Rakefile | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 7673d66..d86d75c 100644 --- a/Gemfile +++ b/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' diff --git a/Rakefile b/Rakefile index 5b5bfce..b307d62 100644 --- a/Rakefile +++ b/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 ]