Merge pull request #2473 from MikeMcQuaid/audit-language-module-requirements

audit: deprecate language module requirements.
This commit is contained in:
Mike McQuaid 2017-04-17 14:20:51 +01:00 committed by GitHub
commit 29b54dc16d

View File

@ -1021,6 +1021,10 @@ class FormulaAuditor
problem ":tex is deprecated." problem ":tex is deprecated."
end end
if line =~ /depends_on\s+['"].+['"]\s+=>\s+:(lua|perl|python|ruby)(\d*)/
problem "Formulae should vendor #{$1} modules rather than use `depends_on ... => :#{$1}#{$2}`."
end
# Commented-out depends_on # Commented-out depends_on
problem "Commented-out dep #{$1}" if line =~ /#\s*depends_on\s+(.+)\s*$/ problem "Commented-out dep #{$1}" if line =~ /#\s*depends_on\s+(.+)\s*$/