aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
authorMike McQuaid2016-11-21 07:52:05 +0000
committerGitHub2016-11-21 07:52:05 +0000
commit17109737925c65acfba761aa107567d07a910557 (patch)
tree45e003103b80581e2f5aa8af3be4c6ac83a3a6f9 /Library/Homebrew/dev-cmd
parent947b85003514f789ab881977d9e6a12060a9acf7 (diff)
parent4a9601ab82c1f8093d8d3643bed8b2532f7c4890 (diff)
downloadbrew-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.rb5
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