diff --git a/Library/Homebrew/formula_auditor.rb b/Library/Homebrew/formula_auditor.rb index 6374604779..d05c0b1876 100644 --- a/Library/Homebrew/formula_auditor.rb +++ b/Library/Homebrew/formula_auditor.rb @@ -123,6 +123,14 @@ module Homebrew EOS end end + + return if !formula.core_formula? && formula.path == formula.tap.new_formula_path(formula.name) + + problem <<~EOS + Formula is in wrong path: + Expected: #{formula.tap.new_formula_path(formula.name)} + Actual: #{formula.path} + EOS end def self.aliases