summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorMickaël Canévet <mickael.canevet@camptocamp.com>2015-02-18 09:11:58 +0100
committerMickaël Canévet <mickael.canevet@camptocamp.com>2015-02-18 09:11:58 +0100
commit43d625bf452914124bc9e4be75b3874a02a6e09c (patch)
tree2eba44aef94997c49e244d275380f7989660940a /Rakefile
parent2ffbef295cc9e44a6ac336032da0b93fae8cf58c (diff)
Fix puppet-lint configuration
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index a334275..f0f08fc 100644
--- a/Rakefile
+++ b/Rakefile
@@ -2,10 +2,11 @@ require 'puppetlabs_spec_helper/rake_tasks'
require 'puppet-lint/tasks/puppet-lint'
Rake::Task[:lint].clear
-PuppetLint.configuration.fail_on_warnings
-PuppetLint.configuration.send('relative')
-PuppetLint.configuration.send('disable_80chars')
-PuppetLint.configuration.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp", "vendor/**/*.pp"]
+PuppetLint::RakeTask.new :lint do |config|
+ config.ignore_paths = ["spec/**/*.pp", "pkg/**/*.pp", "vendor/**/*.pp"]
+ config.disable_checks = ['80chars']
+ config.fail_on_warnings = true
+end
PuppetSyntax.exclude_paths = ["spec/fixtures/**/*.pp", "vendor/**/*"]