Merge pull request #1844 from MikeMcQuaid/audit-universal

audit: don't allow universal for new formulae.
This commit is contained in:
Mike McQuaid 2017-01-17 10:08:44 +00:00 committed by GitHub
commit aa104137e5

View File

@ -481,6 +481,10 @@ class FormulaAuditor
next unless @strict next unless @strict
if o.name == "universal"
problem "macOS has been 64-bit only since 10.6 so universal options are deprecated."
end
if o.name !~ /with(out)?-/ && o.name != "c++11" && o.name != "universal" if o.name !~ /with(out)?-/ && o.name != "c++11" && o.name != "universal"
problem "Options should begin with with/without. Migrate '--#{o.name}' with `deprecated_option`." problem "Options should begin with with/without. Migrate '--#{o.name}' with `deprecated_option`."
end end