From e8319ac027366b0044bb5bbc7371fbfdcaad8980 Mon Sep 17 00:00:00 2001 From: Joshua Hoblitt Date: Fri, 28 Nov 2014 18:31:24 -0700 Subject: [PATCH] fail on linter warnings --- Rakefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index c15ae23..8a4c855 100644 --- a/Rakefile +++ b/Rakefile @@ -9,10 +9,13 @@ PuppetLint.configuration.ignore_paths = [ 'spec/**/*.pp', 'tests/**/*.pp', ] +PuppetLint::RakeTask.new :lint do |config| + config.pattern = 'manifests/**/*.pp' + config.fail_on_warnings = true +end task :default => [ :syntax, :lint, :spec, ] -