Fix Rakefile regarding lint usage
See https://github.com/rodjek/puppet-lint/issues/355 Change-Id: I74bec9d1a1fb9bb84acf5c494c9f7f003040c617
This commit is contained in:
parent
746d71328b
commit
dcd747e678
|
@ -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
|
||||
|
|
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue