Skip to content
Snippets Groups Projects
Commit 0948d201 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

audit: deprecate language module requirements.

Make `brew audit` complain about language module requirements because
they provide a crappy user experience compared to vendoring and we’re
not really fixing bugs in them any more.
parent 4d6e3199
No related branches found
No related tags found
No related merge requests found
...@@ -1021,6 +1021,10 @@ class FormulaAuditor ...@@ -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*$/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment