diff options
| author | William Woodruff | 2016-11-20 00:40:54 -0500 |
|---|---|---|
| committer | William Woodruff | 2016-11-20 00:40:54 -0500 |
| commit | 4a9601ab82c1f8093d8d3643bed8b2532f7c4890 (patch) | |
| tree | 37bfad9f9531161e12b06fa4633809d9a18ed129 /Library/Homebrew/dev-cmd | |
| parent | 7fbab8be9c1aa7b3a5a57ab1362fc128d12135ed (diff) | |
| download | brew-4a9601ab82c1f8093d8d3643bed8b2532f7c4890.tar.bz2 | |
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 |
