audit: flag descs starting with the formula name

Closes Homebrew/homebrew#45493.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
Baptiste Fontaine 2015-10-30 00:59:30 +01:00
parent f7e649831d
commit a5f6295b62

View File

@ -392,6 +392,10 @@ class FormulaAuditor
if desc =~ /^([Aa]n?)\s/
problem "Please remove the indefinite article \"#{$1}\" from the beginning of the description"
end
if desc =~ /^#{formula.name} is\s/i
problem "Description shouldn't include the formula name"
end
end
def audit_homepage