Skip to content
Snippets Groups Projects
Commit 50b94ada authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

add audit for Formula.factory

parent 27365a56
No related branches found
No related tags found
No related merge requests found
......@@ -180,7 +180,7 @@ class FormulaAuditor
def audit_conflicts
f.conflicts.each do |c|
begin
Formula.factory(c.name)
Formulary.factory(c.name)
rescue FormulaUnavailableError
problem "Can't find conflicting formula #{c.name.inspect}."
end
......@@ -299,6 +299,10 @@ class FormulaAuditor
if text =~ /system\s+['"]xcodebuild/ && text !~ /SYMROOT=/
problem "xcodebuild should be passed an explicit \"SYMROOT\""
end
if text =~ /Formula\.factory\(/
problem "\"Formula.factory(name)\" is deprecated in favor of \"Formula[name]\""
end
end
def audit_line(line)
......
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