From d4cb4e13474005ad3c83bb4c6967be501fcc7007 Mon Sep 17 00:00:00 2001 From: Gene Liverman Date: Sun, 4 Jun 2017 17:30:05 -0700 Subject: [PATCH] updatd tests --- Rakefile | 9 ++++----- puppet/production/Puppetfile | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Rakefile b/Rakefile index 1cb3edb..5fd9206 100644 --- a/Rakefile +++ b/Rakefile @@ -11,7 +11,6 @@ exclude_paths = [ 'spec/**/*' ] -RuboCop::RakeTask.new RuboCop::RakeTask.new(:rubocop) do |task| # task.patterns = ['lib/**/*.rb'] # only show the files with failures @@ -20,10 +19,10 @@ RuboCop::RakeTask.new(:rubocop) do |task| # task.fail_on_error = false end -PuppetLint.configuration.fail_on_warnings = true -PuppetLint.configuration.ignore_paths = exclude_paths -PuppetLint.configuration.log_format = - '%{path}:%{linenumber}:%{check}:%{KIND}:%{message}' +PuppetLint::RakeTask.new :lint do |config| + config.fail_on_warnings = true + config.ignore_paths = exclude_paths +end PuppetSyntax.exclude_paths = exclude_paths diff --git a/puppet/production/Puppetfile b/puppet/production/Puppetfile index 077481a..69a84c9 100644 --- a/puppet/production/Puppetfile +++ b/puppet/production/Puppetfile @@ -1,4 +1,4 @@ -# rubocop:disable FileName +# rubocop:disable Lint/UnneededDisable, Style/FileName forge 'http://forge.puppetlabs.com' # rubocop:disable Metrics/LineLength