aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2011-03-21 12:57:35 -0700
committerAdam Vandenberg2011-03-21 13:07:14 -0700
commit716da2dfbd46b65a8299c9ece783ec423a462d3e (patch)
tree5647e09ec1a588d6bb3fc0ac23f7d003329ba7a0
parentace8723caffbb0de638a5fb75242dfbd4a8b08a0 (diff)
downloadbrew-716da2dfbd46b65a8299c9ece783ec423a462d3e.tar.bz2
brew audit: add strict check for <Formula spacing
-rwxr-xr-xLibrary/Homebrew/cmd/audit.rb8
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