blob: 1114c637234d05f21fb7b431a3d7c2500a2d3a19 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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", "--config",
"#{HOMEBREW_LIBRARY}/.rubocop.yml", *target
Homebrew.failed = !$?.success?
end
end
|