Fix JSON output handling.
This commit is contained in:
parent
5b31507fda
commit
84c29fcf1f
@ -57,13 +57,13 @@ module Homebrew
|
|||||||
args += [HOMEBREW_LIBRARY_PATH]
|
args += [HOMEBREW_LIBRARY_PATH]
|
||||||
else
|
else
|
||||||
args << "--config" << HOMEBREW_LIBRARY/".rubocop.yml"
|
args << "--config" << HOMEBREW_LIBRARY/".rubocop.yml"
|
||||||
args << "--format" << "simple"
|
|
||||||
args += files
|
args += files
|
||||||
end
|
end
|
||||||
|
|
||||||
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"
|
||||||
|
args << "--format" << "simple" if files
|
||||||
system "rubocop", *args
|
system "rubocop", *args
|
||||||
!$?.success?
|
!$?.success?
|
||||||
when :json
|
when :json
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user