From c48c6926fcd7b883f2ab2d3c84759f69b5d7cba1 Mon Sep 17 00:00:00 2001 From: Glenn Sarti Date: Sat, 7 Jul 2018 19:37:34 +0800 Subject: [PATCH] (maint) Force rubocop to only use project config Previously rubocop would search child directories for its configuration file which caused problems with Puppet-Lint as it uses an older version. This commit updates the rake task to only use the project config file. --- Rakefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Rakefile b/Rakefile index 2cb18181..0d2c477d 100644 --- a/Rakefile +++ b/Rakefile @@ -19,6 +19,8 @@ if rubocop_available desc 'Run RuboCop' RuboCop::RakeTask.new(:rubocop) do |task| task.options << '--display-cop-names' + task.options << '--config' + task.options << '.rubocop.yml' end end