From a2e2553bd82ca130931072353a167be5d9e87a20 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Fri, 30 Oct 2015 17:55:07 +0100 Subject: [PATCH] audit: flag any desc that starts with the formula name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous version didn’t work with descs like: "TheFormula serves a web page" --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index ece2ed19e2..b33245647a 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -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