Skip to content

Commit c48c692

Browse files
committed
(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.
1 parent 3bfa2dc commit c48c692

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ if rubocop_available
1919
desc 'Run RuboCop'
2020
RuboCop::RakeTask.new(:rubocop) do |task|
2121
task.options << '--display-cop-names'
22+
task.options << '--config'
23+
task.options << '.rubocop.yml'
2224
end
2325
end
2426

0 commit comments

Comments
 (0)