aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2017-06-12 16:16:37 +0100
committerGitHub2017-06-12 16:16:37 +0100
commit22c431d221ca25413f3b63374d75173bedbe9e66 (patch)
treef362e3ec0a69f528234a7833de347e9c63b98080 /Library/Homebrew/cmd
parentaa364fbf155ba4c795ebef51abee1212801c4771 (diff)
parent021cef4b2bfebe330fa55e9dcc904a08932bad94 (diff)
downloadbrew-22c431d221ca25413f3b63374d75173bedbe9e66.tar.bz2
Merge pull request #2767 from MikeMcQuaid/rubocop-no-special-global-vars
rubocop: don’t allow special global variables.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/style.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/style.rb b/Library/Homebrew/cmd/style.rb
index 7da71749c..c6201e371 100644
--- a/Library/Homebrew/cmd/style.rb
+++ b/Library/Homebrew/cmd/style.rb
@@ -112,7 +112,7 @@ module Homebrew
args << "--display-cop-names" if ARGV.include? "--display-cop-names"
args << "--format" << "simple" if files
system(cache_env, "rubocop", *args)
- !$?.success?
+ !$CHILD_STATUS.success?
when :json
json, _, status = Open3.capture3(cache_env, "rubocop", "--format", "json", *args)
# exit status of 1 just means violations were found; other numbers mean