From 68d312c46fc0251a525a300b75c9a3c0c3c3826e Mon Sep 17 00:00:00 2001
From: Adam Vandenberg <flangy@gmail.com>
Date: Sun, 27 Jan 2013 14:27:32 -0800
Subject: [PATCH] audit: hint about depends_on Class

---
 Library/Homebrew/cmd/audit.rb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 8d4ddcc68a..3951d35f8e 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -410,6 +410,10 @@ class FormulaAuditor
     if text =~ /skip_clean\s+:all/
       problem "`skip_clean :all` is deprecated; brew no longer strips symbols"
     end
+
+    if text =~ /depends_on (.*)\.new\s*[^(]/
+      problem "`depends_on` can take requirement classes directly"
+    end
   end
 
   def audit
-- 
GitLab