Exempt the head-only tap from the head-only audit warning
This commit is contained in:
parent
9dfc5e39e8
commit
16a2220834
@ -36,10 +36,6 @@ end
|
|||||||
|
|
||||||
# Formula extensions for auditing
|
# Formula extensions for auditing
|
||||||
class Formula
|
class Formula
|
||||||
def head_only?
|
|
||||||
@head and @stable.nil?
|
|
||||||
end
|
|
||||||
|
|
||||||
def text
|
def text
|
||||||
@text ||= FormulaText.new(@path)
|
@text ||= FormulaText.new(@path)
|
||||||
end
|
end
|
||||||
@ -266,7 +262,9 @@ class FormulaAuditor
|
|||||||
end
|
end
|
||||||
|
|
||||||
def audit_specs
|
def audit_specs
|
||||||
problem "Head-only (no stable download)" if formula.head_only?
|
if head_only?(formula) && formula.tap != "homebrew/homebrew-headonly"
|
||||||
|
problem "Head-only (no stable download)"
|
||||||
|
end
|
||||||
|
|
||||||
%w[Stable Devel HEAD].each do |name|
|
%w[Stable Devel HEAD].each do |name|
|
||||||
next unless spec = formula.send(name.downcase)
|
next unless spec = formula.send(name.downcase)
|
||||||
@ -567,6 +565,10 @@ class FormulaAuditor
|
|||||||
def problem p
|
def problem p
|
||||||
@problems << p
|
@problems << p
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def head_only?(formula)
|
||||||
|
formula.head && formula.stable.nil?
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ResourceAuditor
|
class ResourceAuditor
|
||||||
|
Loading…
x
Reference in New Issue
Block a user