aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-09-20 17:05:36 +0100
committerGitHub2017-09-20 17:05:36 +0100
commitf343aabd2e69c78ef6836db16a8fed20c305d343 (patch)
tree399928fa39afec91e7ca74b5202ae0c7087ba7fe /Library
parentb93fa96ec8b79bbe97253bc4a493c82ce1bb6d50 (diff)
parent17e275305397af78efddd6f4442ad14595cbcd0a (diff)
downloadbrew-f343aabd2e69c78ef6836db16a8fed20c305d343.tar.bz2
Merge pull request #3179 from GauthamGoli/rubocop_cli_version
audit: Use version pinned by brew while executing rubocop cli
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/style.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/style.rb b/Library/Homebrew/cmd/style.rb
index b0f46fadc..e816db5dc 100644
--- a/Library/Homebrew/cmd/style.rb
+++ b/Library/Homebrew/cmd/style.rb
@@ -119,10 +119,10 @@ module Homebrew
when :print
args << "--display-cop-names" if ARGV.include? "--display-cop-names"
args << "--format" << "simple" if files
- system(cache_env, "rubocop", *args)
+ system(cache_env, "rubocop", "_#{HOMEBREW_RUBOCOP_VERSION}_", *args)
!$CHILD_STATUS.success?
when :json
- json, _, status = Open3.capture3(cache_env, "rubocop", "--format", "json", *args)
+ json, _, status = Open3.capture3(cache_env, "rubocop", "_#{HOMEBREW_RUBOCOP_VERSION}_", "--format", "json", *args)
# exit status of 1 just means violations were found; other numbers mean
# execution errors.
# exitstatus can also be nil if RuboCop process crashes, e.g. due to