audit: flag any desc that starts with the formula name

The previous version didn’t work with descs like:

  "TheFormula serves a web page"
This commit is contained in:
Baptiste Fontaine 2015-10-30 17:55:07 +01:00
parent 2ef51381c9
commit a2e2553bd8

View File

@ -393,7 +393,7 @@ class FormulaAuditor
problem "Description shouldn't start with an indefinite article (#{$1})"
end
if desc =~ /^#{formula.name} is\s/i
if desc =~ /^#{formula.name}\s/i
problem "Description shouldn't include the formula name"
end
end