aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominyk Tiller2015-02-08 02:36:30 +0000
committerMike McQuaid2015-02-08 12:24:17 +0000
commita17b3b3e72f391f506ddeedf1542608207200538 (patch)
treea8512500c194944e1fff55a97efbe9a88a92460c
parent3dfbadedb45d4ac00f7d64ea33427d5ee80da807 (diff)
downloadhomebrew-a17b3b3e72f391f506ddeedf1542608207200538.tar.bz2
audit: catch more examples from example_formula
See https://github.com/Homebrew/homebrew/pull/36629#discussion_r24293912 amongst other recent examples. The example formula isn’t as strongly policed as the ` brew create ` default, this tries to do something about that. Closes #36639. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Homebrew/cmd/audit.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index 4c9896569..8c874944e 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -455,9 +455,18 @@ class FormulaAuditor
if line =~ /# PLEASE REMOVE/
problem "Please remove default template comments"
end
+ if line =~ /# Documentation:/
+ problem "Please remove default template comments"
+ end
if line =~ /# if this fails, try separate make\/make install steps/
problem "Please remove default template comments"
end
+ if line =~ /# The url of the archive/
+ problem "Please remove default template comments"
+ end
+ if line =~ /## Naming --/
+ problem "Please remove default template comments"
+ end
if line =~ /# if your formula requires any X11\/XQuartz components/
problem "Please remove default template comments"
end