aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/style.rb
diff options
context:
space:
mode:
authorMike McQuaid2015-01-05 08:01:20 +0000
committerMike McQuaid2015-01-05 08:01:20 +0000
commit3821c190f90f61fdbb17c2785d61e0cd67a97d7e (patch)
tree4c1ab12e40131d2242e2b08a719edd0514295d39 /Library/Homebrew/cmd/style.rb
parent980cad0717e8a22805bd3a1ac4e7860e4103c47d (diff)
downloadbrew-3821c190f90f61fdbb17c2785d61e0cd67a97d7e.tar.bz2
style: explicitly point to config file.
Closes Homebrew/homebrew#35556.
Diffstat (limited to 'Library/Homebrew/cmd/style.rb')
-rw-r--r--Library/Homebrew/cmd/style.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/style.rb b/Library/Homebrew/cmd/style.rb
index 132b9d2e3..1114c6372 100644
--- a/Library/Homebrew/cmd/style.rb
+++ b/Library/Homebrew/cmd/style.rb
@@ -8,7 +8,8 @@ module Homebrew
Homebrew.install_gem_setup_path! "rubocop"
- system "rubocop", "--format", "simple", *target
+ system "rubocop", "--format", "simple", "--config",
+ "#{HOMEBREW_LIBRARY}/.rubocop.yml", *target
Homebrew.failed = !$?.success?
end
end