diff options
| author | Dominyk Tiller | 2015-02-08 02:36:30 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2015-02-08 12:24:17 +0000 |
| commit | 2abd3298f9520b25550b4f5b27884452b4ddec13 (patch) | |
| tree | d1ab2cb53e7387820f0051bb770a63a1a3d23ed9 /Library | |
| parent | fb246b0f4e12b051a59398cf74b0516ed5f2bcb7 (diff) | |
| download | brew-2abd3298f9520b25550b4f5b27884452b4ddec13.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 Homebrew/homebrew#36639.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 9 |
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 |
