Skip to content
Snippets Groups Projects
Commit 16a22208 authored by Jack Nagel's avatar Jack Nagel
Browse files

Exempt the head-only tap from the head-only audit warning

parent 9dfc5e39
No related branches found
No related tags found
No related merge requests found
......@@ -36,10 +36,6 @@ end
# Formula extensions for auditing
class Formula
def head_only?
@head and @stable.nil?
end
def text
@text ||= FormulaText.new(@path)
end
......@@ -266,7 +262,9 @@ class FormulaAuditor
end
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|
next unless spec = formula.send(name.downcase)
......@@ -567,6 +565,10 @@ class FormulaAuditor
def problem p
@problems << p
end
def head_only?(formula)
formula.head && formula.stable.nil?
end
end
class ResourceAuditor
......
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