audit 'def test'

Closes Homebrew/homebrew#31120
This commit is contained in:
Adam Vandenberg 2014-07-27 12:27:53 -07:00
parent 10e5fea01d
commit bb2c9b7ba4

View File

@ -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