Skip to content

Commit

Permalink
Merge pull request #76 from hunner/relative_paths
Browse files Browse the repository at this point in the history
Allow relative paths and params
  • Loading branch information
Morgan Haskel committed Aug 22, 2014
2 parents 6ed443b + 958102e commit 252b2e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/puppetlabs_spec_helper/rake_tasks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,12 @@ def revision(scm, target, ref)

desc "Check puppet manifests with puppet-lint"
task :lint do
require 'puppet-lint/tasks/puppet-lint'
require 'puppet-lint'
PuppetLint.configuration.relative = true
PuppetLint.configuration.disable_class_inherits_from_params_class
PuppetLint.configuration.ignore_paths ||= []
PuppetLint.configuration.ignore_paths << "spec/fixtures/**/*.pp"
PuppetLint.configuration.ignore_paths << "pkg/**/*.pp"
end

require 'puppet-syntax/tasks/puppet-syntax'
Expand Down

0 comments on commit 252b2e9

Please sign in to comment.