Merge "Fix Rakefile regarding lint usage"

This commit is contained in:
Jenkins 2016-06-24 15:36:34 +00:00 committed by Gerrit Code Review
commit 9ed1ae1a93
2 changed files with 5 additions and 4 deletions

View File

@ -17,7 +17,4 @@ group :development, :test do
gem 'rake'
gem "puppet", ENV['PUPPET_VERSION'] || '~> 3.4.0'
gem 'puppetlabs_spec_helper'
# Need to use master branch of puppet-lint because of
# https://github.com/rodjek/puppet-lint/issues/355
gem 'puppet-lint', :git => 'https://github.com/rodjek/puppet-lint.git'
end

View File

@ -13,7 +13,11 @@ exclude_paths = [
"vendor/**/*",
"spec/**/*",
]
PuppetLint.configuration.ignore_paths = exclude_paths
Rake::Task[:lint].clear
PuppetLint::RakeTask.new :lint do |config|
config.ignore_paths = exclude_paths
end
PuppetSyntax.exclude_paths = exclude_paths
desc "Run metadata_lint, lint, syntax, and spec tests."