aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib
diff options
context:
space:
mode:
authorMarkus Reiter2018-01-28 17:53:49 +0100
committerGitHub2018-01-28 17:53:49 +0100
commit9f4b4a169975a5bb9272974963d4d37d873affc6 (patch)
treef6abff344754ccacfddade799f11d9bbbb0a7857 /Library/Homebrew/cask/lib
parent5244755a5283f72ec1684a9e4b44a6aed2d51a82 (diff)
parent884c57f9f4ed44096e46c1e0510cce89e15b2477 (diff)
downloadbrew-9f4b4a169975a5bb9272974963d4d37d873affc6.tar.bz2
Merge pull request #3740 from reitermarkus/cask-style
Fix `brew cask style` on Travis.
Diffstat (limited to 'Library/Homebrew/cask/lib')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/style.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/style.rb b/Library/Homebrew/cask/lib/hbc/cli/style.rb
index 86fc98eaa..bf7ffb62d 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/style.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/style.rb
@@ -10,9 +10,9 @@ module Hbc
def run
install_rubocop
cache_env = { "XDG_CACHE_HOME" => "#{HOMEBREW_CACHE}/style" }
- system(cache_env, "rubocop", *rubocop_args, "--", *cask_paths)
+ hide_warnings = debug? ? [] : [ENV["HOMEBREW_RUBY_PATH"], "-W0", "-S"]
+ system(cache_env, *hide_warnings, "rubocop", *rubocop_args, "--", *cask_paths)
raise CaskError, "style check failed" unless $CHILD_STATUS.success?
- true
end
def install_rubocop
@@ -43,8 +43,8 @@ module Hbc
[
"--require", "rubocop-cask",
"--force-default-config",
- "--force-exclusion",
- "--format", "simple"
+ "--format", "simple",
+ "--parallel"
]
end