Audit check for old MacOS version methods
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
d4cfa1c0c5
commit
95acaeb98f
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user