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 << "--auto-correct" if fix
|
||||||
args += files
|
args += files
|
||||||
|
|
||||||
|
HOMEBREW_LIBRARY.cd do
|
||||||
case output_type
|
case output_type
|
||||||
when :print
|
when :print
|
||||||
args << "--display-cop-names" if ARGV.include? "--display-cop-names"
|
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}"
|
raise "Invalid output_type for check_style_impl: #{output_type}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
class RubocopResults
|
class RubocopResults
|
||||||
def initialize(json)
|
def initialize(json)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user