audit_file: check formula path

This commit is contained in:
Alexander Bayandin 2023-09-04 13:12:07 +01:00
parent 66eb266038
commit de8eb35b73

View File

@ -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