diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 35798391e25586de4ff3a8d8e1137f4290cd8ad0..07d2e71cbadba3078ce9732523b99320f142098f 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -1031,11 +1031,15 @@ class FormulaAuditor end if line =~ /depends_on :tex/ - problem ":tex is deprecated." + problem ":tex is deprecated" 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}`." + if line =~ /depends_on\s+['"](.+)['"]\s+=>\s+:(lua|perl|python|ruby)(\d*)/ + 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 # Commented-out depends_on