audit: ensure dependencies don't use options.
Option dependencies are nasty as they cause unnecessary builds from source.
This commit is contained in:
parent
6e1faf5b88
commit
3011cbac34
@ -1028,11 +1028,15 @@ class FormulaAuditor
|
|||||||
end
|
end
|
||||||
|
|
||||||
if line =~ /depends_on :tex/
|
if line =~ /depends_on :tex/
|
||||||
problem ":tex is deprecated."
|
problem ":tex is deprecated"
|
||||||
end
|
end
|
||||||
|
|
||||||
if line =~ /depends_on\s+['"].+['"]\s+=>\s+:(lua|perl|python|ruby)(\d*)/
|
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}`."
|
problem "#{$2} modules should be vendored rather than use deprecated `depends_on \"#{$1}\" => :#{$2}#{$3}`"
|
||||||
|
end
|
||||||
|
|
||||||
|
if line =~ /depends_on\s+['"](.+)['"]\s+=>\s+.*['"](.+)['"]/
|
||||||
|
problem "Dependency #{$1} should not use option #{$2}"
|
||||||
end
|
end
|
||||||
|
|
||||||
# Commented-out depends_on
|
# Commented-out depends_on
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user