From 9b9d25d27fb6ab3ce5cb73db2bb383368b1682b7 Mon Sep 17 00:00:00 2001 From: Steve Peters Date: Thu, 27 May 2021 17:55:28 -0700 Subject: [PATCH] audit: complain about uppercase formula names Check for uppercase formula names in audit_formula_name method of formula_auditor. --- Library/Homebrew/formula_auditor.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/formula_auditor.rb b/Library/Homebrew/formula_auditor.rb index e4ff85db0b..5a69bc751c 100644 --- a/Library/Homebrew/formula_auditor.rb +++ b/Library/Homebrew/formula_auditor.rb @@ -120,11 +120,13 @@ module Homebrew end def audit_formula_name + name = formula.name + + problem "Formula name '#{name}' must not contain uppercase letters." if name != name.downcase + return unless @strict return unless @core_tap - name = formula.name - problem "'#{name}' is not allowed in homebrew/core." if MissingFormula.disallowed_reason(name) if Formula.aliases.include? name