Remove unneeded rules.

This commit is contained in:
Markus Reiter 2024-07-30 21:44:10 +02:00
parent 40d55f8035
commit 77e3a405f5
No known key found for this signature in database
GPG Key ID: 245293B51702655B

View File

@ -20,10 +20,6 @@ module Homebrew
errors << "non-ASCII characters" unless token.ascii_only? errors << "non-ASCII characters" unless token.ascii_only?
errors << "double hyphens" if token.include?("--") errors << "double hyphens" if token.include?("--")
# A bunch of formulae contain these:
# errors << "underscores" if token.include?("_")
# errors << "plus symbols" if token.include?("+")
errors << "a leading @" if token.start_with?("@") errors << "a leading @" if token.start_with?("@")
errors << "a trailing @" if token.end_with?("@") errors << "a trailing @" if token.end_with?("@")
errors << "a leading hyphen" if token.start_with?("-") errors << "a leading hyphen" if token.start_with?("-")