Skip to content

Commit

Permalink
audit_file: check formula path
Browse files Browse the repository at this point in the history
  • Loading branch information
bayandin committed Sep 4, 2023
1 parent 66eb266 commit de8eb35
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Library/Homebrew/formula_auditor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ def audit_file
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
Expand Down

0 comments on commit de8eb35

Please sign in to comment.