aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib
diff options
context:
space:
mode:
authorMike McQuaid2017-05-28 16:59:53 +0100
committerMike McQuaid2017-05-29 18:42:02 +0100
commit4356016b4a1c2eaba02680b4ad7f1747d2df53bf (patch)
tree9932f9c8fd87d9bdb4d36770012748782e5a497c /Library/Homebrew/cask/lib
parent3165fd2519c41a2be7e12442a5098d3b699fda04 (diff)
downloadbrew-4356016b4a1c2eaba02680b4ad7f1747d2df53bf.tar.bz2
Use parallel RuboCop
This requires updating to Rubocop 0.49.0 which will require some fixes to rules, in Homebrew/brew and Homebrew/homebrew-core but opening this for now so I remember.
Diffstat (limited to 'Library/Homebrew/cask/lib')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/style.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/style.rb b/Library/Homebrew/cask/lib/hbc/cli/style.rb
index 03159a0cf..97208232b 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/style.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/style.rb
@@ -11,7 +11,8 @@ module Hbc
def run
install_rubocop
- system({ "XDG_CACHE_HOME" => HOMEBREW_CACHE }, "rubocop", *rubocop_args, "--", *cask_paths)
+ cache_env = { "XDG_CACHE_HOME" => "#{HOMEBREW_CACHE}/style" }
+ system(cache_env, "rubocop", *rubocop_args, "--", *cask_paths)
raise CaskError, "style check failed" unless $CHILD_STATUS.success?
true
end