aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2013-01-27 14:27:32 -0800
committerAdam Vandenberg2013-01-27 14:54:48 -0800
commit68d312c46fc0251a525a300b75c9a3c0c3c3826e (patch)
treecc32a41c26e3e658946920876a7f62ba8dd6d15e /Library
parent871f3a091accaa6828f8536da416bf4f13317d7d (diff)
downloadbrew-68d312c46fc0251a525a300b75c9a3c0c3c3826e.tar.bz2
audit: hint about depends_on Class
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 8d4ddcc68..3951d35f8 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