diff options
| author | Adam Vandenberg | 2011-03-21 12:57:35 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-21 13:07:14 -0700 |
| commit | 564c2db1a0864845636600bcad398c6ec4ffbf5f (patch) | |
| tree | d0936bfd7910bb714278b5cd97c633aaac7790ed /Library | |
| parent | 649f91e02b959eb9a2919aa5ff283422af37b996 (diff) | |
| download | homebrew-564c2db1a0864845636600bcad398c6ec4ffbf5f.tar.bz2 | |
brew audit: add strict check for <Formula spacing
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Homebrew/cmd/audit.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 1bc6bf32a..559543adf 100755 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -15,6 +15,10 @@ end def audit_formula_text name, text problems = [] + if text =~ /<Formula/ + problems << " * We now space class inheritance: class Foo < Formula" + end if strict? + # Commented-out cmake support from default template if (text =~ /# depends_on 'cmake'/) or (text =~ /# system "cmake/) problems << " * Commented cmake support found." @@ -193,8 +197,8 @@ def audit_formula_urls f unless p =~ %r[^http://mirrors\.kernel\.org/debian/pool/] problems << " * \"mirrors.kernel.org\" is the preferred mirror for debian software." - end if strict? - end + end + end if strict? return problems end |
