RuboCop has to be run inside HOMEBREW_LIBRARY.
This commit is contained in:
parent
21e0a7efb9
commit
ce6994b001
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user