aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 5af7792b2..5417313b0 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -6,6 +6,7 @@ require "official_taps"
require "tap_migrations"
require "cmd/search"
require "date"
+require "formula_renames"
module Homebrew
def audit
@@ -229,6 +230,11 @@ class FormulaAuditor
return
end
+ if FORMULA_RENAMES.key? name
+ problem "'#{name}' is reserved as the old name of #{FORMULA_RENAMES[name]}"
+ return
+ end
+
if !formula.core_formula? && Formula.core_names.include?(name)
problem "Formula name conflicts with existing core formula."
return
@@ -270,6 +276,10 @@ class FormulaAuditor
next
end
+ if FORMULA_RENAMES[dep.name] == dep_f.name
+ problem "Dependency '#{dep.name}' was renamed; use newname '#{dep_f.name}'."
+ end
+
if @@aliases.include?(dep.name)
problem "Dependency '#{dep.name}' is an alias; use the canonical name '#{dep.to_formula.full_name}'."
end