From a5f6295b62c468fd10d83b5af84140dc5cdbba53 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Fri, 30 Oct 2015 00:59:30 +0100 Subject: [PATCH] audit: flag descs starting with the formula name Closes Homebrew/homebrew#45493. Signed-off-by: Baptiste Fontaine --- Library/Homebrew/cmd/audit.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index ca5891efdb..67ecbffa75 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -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