aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2014-07-27 12:27:53 -0700
committerAdam Vandenberg2014-07-27 15:10:15 -0700
commit7897e37b5754d7b2a86bd15849e4a3a8e6df0f15 (patch)
tree1de4dbb90eaed1a5186cfe2ab28ad5202af57b20 /Library
parent28719c91ae62615856cf016a6c4f29ed08e131de (diff)
downloadhomebrew-7897e37b5754d7b2a86bd15849e4a3a8e6df0f15.tar.bz2
audit 'def test'
Closes #31120
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 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