From f78a63984bbe9eb9fbf2c6929cb527f8211951a3 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Mon, 3 Aug 2015 11:53:30 +0200 Subject: [PATCH] audit: add check for indefinite article at the beginning of desc. Closes Homebrew/homebrew#42404. Signed-off-by: Dominyk Tiller --- 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 3bb1d4fbb7..afc279c710 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -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