audit: check for build_universal? calls if --universal unused
Closes Homebrew/homebrew#8123. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
2c3b107d93
commit
323c30978f
@ -151,7 +151,7 @@ def audit_formula_options f, text
|
|||||||
|
|
||||||
if documented_options.length > 0
|
if documented_options.length > 0
|
||||||
documented_options.each do |o|
|
documented_options.each do |o|
|
||||||
next if o == '--universal'
|
next if o == '--universal' and text =~ /ARGV\.build_universal\?/
|
||||||
problems << " * Option #{o} is unused" unless options.include? o
|
problems << " * Option #{o} is unused" unless options.include? o
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user