aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 085db0710..4dec97f32 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -493,6 +493,10 @@ class FormulaAuditor
problem "Use new-style option definitions"
end
+ if line =~ /def test/
+ problem "Use new-style test definitions (test do)"
+ end
+
if line =~ /MACOS_VERSION/
problem "Use MacOS.version instead of MACOS_VERSION"
end