diff options
| author | Alexis Hildebrandt | 2015-08-03 11:53:30 +0200 |
|---|---|---|
| committer | Dominyk Tiller | 2015-08-06 18:10:48 +0100 |
| commit | f78a63984bbe9eb9fbf2c6929cb527f8211951a3 (patch) | |
| tree | 6e730c76180f6c49ccc04428390f6b9f8158d605 /Library/Homebrew/cmd | |
| parent | 09e0bcf1fc67728b9b87dae3dc632c07b34a78eb (diff) | |
| download | brew-f78a63984bbe9eb9fbf2c6929cb527f8211951a3.tar.bz2 | |
audit: add check for indefinite article
at the beginning of desc.
Closes Homebrew/homebrew#42404.
Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 3bb1d4fbb..afc279c71 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 |
