Skip to content

Commit

Permalink
Allow relative paths and params
Browse files Browse the repository at this point in the history
- The relative option allows the module directory to be something like
  `puppet-foo` which is the case for practically all automated testing.
- The params pattern is not compatible with puppet 2.6, but this lint
  issue will be removed from a future version of the style guide as it
  is no longer incorrect.
  • Loading branch information
hunner committed Aug 21, 2014
1 parent 6ed443b commit 958102e
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 958102e

Please sign in to comment.