Skip to content
Snippets Groups Projects
Commit 8c4bd3da authored by Xu Cheng's avatar Xu Cheng
Browse files

audit: use ARGV.resolved_formula


There are audit rules which check cellar. Therefore, we need
`ARGV.resolved_formula` to get proper spec and prefix.

Closes Homebrew/homebrew#44781.

Signed-off-by: default avatarXu Cheng <xucheng@me.com>
parent fe3b69d3
No related branches found
No related tags found
No related merge requests found
......@@ -14,9 +14,9 @@ module Homebrew
problem_count = 0
strict = ARGV.include? "--strict"
if strict && ARGV.formulae.any? && MacOS.version >= :mavericks
if strict && ARGV.resolved_formulae.any? && MacOS.version >= :mavericks
require "cmd/style"
ohai "brew style #{ARGV.formulae.join " "}"
ohai "brew style #{ARGV.resolved_formulae.join " "}"
style
end
......@@ -48,7 +48,7 @@ module Homebrew
ff = if ARGV.named.empty?
Formula
else
ARGV.formulae
ARGV.resolved_formulae
end
output_header = !strict
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment