15 lines
282 B
Ruby
15 lines
282 B
Ruby
module Homebrew
|
|
def style
|
|
target = if ARGV.named.empty?
|
|
[HOMEBREW_LIBRARY]
|
|
else
|
|
ARGV.formulae.map(&:path)
|
|
end
|
|
|
|
Homebrew.install_gem_setup_path! "rubocop"
|
|
|
|
system "rubocop", "--format", "simple", *target
|
|
Homebrew.failed = !$?.success?
|
|
end
|
|
end
|