diff options
| author | Mike McQuaid | 2016-10-01 17:04:44 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2016-10-01 17:04:44 +0100 |
| commit | 84c29fcf1ff29df31ab98b03ed4cedf9222ce161 (patch) | |
| tree | 8485eb382f36243f6f19ad657c211b5f739879f4 | |
| parent | 5b31507fdac6ae12141b3e84f70115610a7ae00c (diff) | |
| download | brew-84c29fcf1ff29df31ab98b03ed4cedf9222ce161.tar.bz2 | |
Fix JSON output handling.
| -rw-r--r-- | Library/Homebrew/cmd/style.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/style.rb b/Library/Homebrew/cmd/style.rb index 9934c6939..e666eb200 100644 --- a/Library/Homebrew/cmd/style.rb +++ b/Library/Homebrew/cmd/style.rb @@ -57,13 +57,13 @@ module Homebrew args += [HOMEBREW_LIBRARY_PATH] else args << "--config" << HOMEBREW_LIBRARY/".rubocop.yml" - args << "--format" << "simple" args += files end case output_type when :print args << "--display-cop-names" if ARGV.include? "--display-cop-names" + args << "--format" << "simple" if files system "rubocop", *args !$?.success? when :json |
