summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2014-10-10 11:54:10 +0200
committermh <mh@immerda.ch>2014-10-10 11:54:10 +0200
commit27c9a5dbc2083dcc20d059008702dd3f75382bcc (patch)
treec3d9a60176907b4e7fa522ec73fb4148c71f32d2 /Rakefile
parent3b1623f00f301e50e2b074bf601af7824d1a530d (diff)
more linting and latest puppet-lint support
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index e9e821a..f3c7f29 100644
--- a/Rakefile
+++ b/Rakefile
@@ -5,10 +5,12 @@ require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint/tasks/puppet-lint'
require 'rspec-system/rake_task'
-PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "vendor/**/*.pp"]
-PuppetLint.configuration.log_format = '%{path}:%{linenumber}:%{KIND}: %{message}'
-PuppetLint.configuration.send("disable_class_inherits_from_params_class")
-PuppetLint.configuration.send("disable_80chars")
+Rake::Task[:lint].clear
+PuppetLint::RakeTask.new :lint do |config|
+ config.ignore_paths = ["spec/**/*.pp", "vendor/**/*.pp"]
+ config.log_format = '%{path}:%{linenumber}:%{KIND}: %{message}'
+ config.disable_checks = [ "class_inherits_from_params_class", "80chars" ]
+end
# use librarian-puppet to manage fixtures instead of .fixtures.yml
# offers more possibilities like explicit version management, forge downloads,...