diff options
| author | Mike McQuaid | 2017-04-22 11:07:16 +0100 |
|---|---|---|
| committer | GitHub | 2017-04-22 11:07:16 +0100 |
| commit | fdcffb25a907a07de60976599ce7e19c3b8d8d04 (patch) | |
| tree | ec43f92fca5cc1577db82128937a99afcdf38b2f /Library | |
| parent | 96ea97967a0c985e3bbb7165d596c1a08411135c (diff) | |
| parent | 3011cbac34334c37eba20cbf06fe7942522602f6 (diff) | |
| download | brew-fdcffb25a907a07de60976599ce7e19c3b8d8d04.tar.bz2 | |
Merge pull request #2482 from MikeMcQuaid/audit-dependency-options
audit: ensure default dependencies don't use options.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 35798391e..07d2e71cb 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 |
