aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorAdam Vandenberg2014-02-24 20:23:21 -0800
committerAdam Vandenberg2014-02-27 08:21:14 -0800
commita853959dd20a26e2ff366e4d6eefbb751389058d (patch)
tree47e343e566509c90dde1d860b18684c9f76b55b0 /Library/Homebrew/cmd
parent3a6ffdac6dc2f52f2352a976fa25266f8edfcbd3 (diff)
downloadhomebrew-a853959dd20a26e2ff366e4d6eefbb751389058d.tar.bz2
add audit for Formula.factory
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/audit.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 846aaffa0..edeb03d03 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -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)