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
commit4cb21e4c39f2f8f843e8907b4f0550eb2b8840e9 (patch)
tree80679c2cc175a452603d9d09d459fb85632fb1e5 /Library
parentd6ae459e633368afae29201c6ca7c49f19a20973 (diff)
downloadhomebrew-4cb21e4c39f2f8f843e8907b4f0550eb2b8840e9.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