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:
parent
f7e649831d
commit
a5f6295b62
@ -392,6 +392,10 @@ class FormulaAuditor
|
|||||||
if desc =~ /^([Aa]n?)\s/
|
if desc =~ /^([Aa]n?)\s/
|
||||||
problem "Please remove the indefinite article \"#{$1}\" from the beginning of the description"
|
problem "Please remove the indefinite article \"#{$1}\" from the beginning of the description"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if desc =~ /^#{formula.name} is\s/i
|
||||||
|
problem "Description shouldn't include the formula name"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def audit_homepage
|
def audit_homepage
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user