Audit check for old MacOS version methods

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-09-10 16:40:13 -05:00
parent d4cfa1c0c5
commit 95acaeb98f

View File

@ -392,6 +392,10 @@ class FormulaAuditor
if text =~ /MACOS_VERSION/ if text =~ /MACOS_VERSION/
problem "Use MacOS.version instead of MACOS_VERSION" problem "Use MacOS.version instead of MACOS_VERSION"
end end
if text =~ /(MacOS.((snow_)?leopard|leopard|(mountain_)?lion)\?)/
problem "#{$1} is deprecated, use a comparison to MacOS.version instead"
end
end end
def audit def audit