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 Homebrew/homebrew#36639.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Dominyk Tiller 2015-02-08 02:36:30 +00:00 committed by Mike McQuaid
parent fb246b0f4e
commit 2abd3298f9

View File

@ -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