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