aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Fontaine2015-10-30 00:59:30 +0100
committerBaptiste Fontaine2015-10-30 09:51:20 +0100
commita5f6295b62c468fd10d83b5af84140dc5cdbba53 (patch)
tree81ff875919e3521ce3e24339ee3ef54a4e164feb
parentf7e649831dd15146956e0c1db0a8dc8a2d2c750f (diff)
downloadbrew-a5f6295b62c468fd10d83b5af84140dc5cdbba53.tar.bz2
audit: flag descs starting with the formula name
Closes Homebrew/homebrew#45493. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
-rw-r--r--Library/Homebrew/cmd/audit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index ca5891efd..67ecbffa7 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