From 2abd3298f9520b25550b4f5b27884452b4ddec13 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Sun, 8 Feb 2015 02:36:30 +0000 Subject: [PATCH] audit: catch more examples from example_formula MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Homebrew/homebrew#36639. Signed-off-by: Mike McQuaid --- Library/Homebrew/cmd/audit.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 4c9896569e..8c874944e9 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