RuboCop has to be run inside HOMEBREW_LIBRARY.

This commit is contained in:
Markus Reiter 2016-09-21 12:43:05 +02:00
parent 21e0a7efb9
commit ce6994b001

View File

@ -54,6 +54,7 @@ module Homebrew
args << "--auto-correct" if fix
args += files
HOMEBREW_LIBRARY.cd do
case output_type
when :print
args << "--display-cop-names" if ARGV.include? "--display-cop-names"
@ -70,6 +71,7 @@ module Homebrew
raise "Invalid output_type for check_style_impl: #{output_type}"
end
end
end
class RubocopResults
def initialize(json)