diff options
| author | Mike McQuaid | 2016-11-21 07:52:05 +0000 |
|---|---|---|
| committer | GitHub | 2016-11-21 07:52:05 +0000 |
| commit | 17109737925c65acfba761aa107567d07a910557 (patch) | |
| tree | 45e003103b80581e2f5aa8af3be4c6ac83a3a6f9 /Library/Homebrew/dev-cmd | |
| parent | 947b85003514f789ab881977d9e6a12060a9acf7 (diff) | |
| parent | 4a9601ab82c1f8093d8d3643bed8b2532f7c4890 (diff) | |
| download | brew-17109737925c65acfba761aa107567d07a910557.tar.bz2 | |
Merge pull request #1540 from woodruffw/audit-check-blacklist
audit: check formula name against blacklisted names.
Diffstat (limited to 'Library/Homebrew/dev-cmd')
| -rw-r--r-- | Library/Homebrew/dev-cmd/audit.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 1d4df932f..037f5abbb 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -35,6 +35,7 @@ require "official_taps" require "cmd/search" require "cmd/style" require "date" +require "blacklist" module Homebrew module_function @@ -310,6 +311,10 @@ class FormulaAuditor name = formula.name full_name = formula.full_name + if blacklisted?(name) + problem "'#{name}' is blacklisted." + end + if Formula.aliases.include? name problem "Formula name conflicts with existing aliases." return |
