2015-01-02 13:36:26 +00:00
|
|
|
module Homebrew
|
|
|
|
def style
|
|
|
|
target = if ARGV.named.empty?
|
|
|
|
[HOMEBREW_LIBRARY]
|
|
|
|
else
|
|
|
|
ARGV.formulae.map(&:path)
|
|
|
|
end
|
|
|
|
|
|
|
|
Homebrew.install_gem_setup_path! "rubocop"
|
|
|
|
|
2015-01-05 08:01:20 +00:00
|
|
|
system "rubocop", "--format", "simple", "--config",
|
|
|
|
"#{HOMEBREW_LIBRARY}/.rubocop.yml", *target
|
2015-01-02 13:36:26 +00:00
|
|
|
Homebrew.failed = !$?.success?
|
|
|
|
end
|
|
|
|
end
|