Skip to content

Commit

Permalink
(maint) Force rubocop to only use project config
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
glennsarti committed Jul 9, 2018
1 parent 7e21f58 commit e198f57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,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

Expand Down

0 comments on commit e198f57

Please sign in to comment.