audit: add check for indefinite article

at the beginning of desc.

Closes Homebrew/homebrew#42404.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Alexis Hildebrandt 2015-08-03 11:53:30 +02:00 committed by Dominyk Tiller
parent 09e0bcf1fc
commit f78a63984b

View File

@ -363,6 +363,10 @@ class FormulaAuditor
if desc =~ /([Cc]ommand ?line)/
problem "Description should use \"command-line\" instead of \"#{$1}\""
end
if desc =~ %r[^([Aa]n?)\s]
problem "Please remove the indefinite article \"#{$1}\" from the beginning of the description"
end
end
def audit_homepage