mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
audit: complain about uppercase formula names
Check for uppercase formula names in audit_formula_name method of formula_auditor.
This commit is contained in:
parent
ca6fc4873e
commit
9b9d25d27f
@ -120,11 +120,13 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
def audit_formula_name
|
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 @strict
|
||||||
return unless @core_tap
|
return unless @core_tap
|
||||||
|
|
||||||
name = formula.name
|
|
||||||
|
|
||||||
problem "'#{name}' is not allowed in homebrew/core." if MissingFormula.disallowed_reason(name)
|
problem "'#{name}' is not allowed in homebrew/core." if MissingFormula.disallowed_reason(name)
|
||||||
|
|
||||||
if Formula.aliases.include? name
|
if Formula.aliases.include? name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user