aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-23 21:31:32 -0700
committerAdam Vandenberg2010-07-23 21:31:32 -0700
commitd111868d025dc492a0e47acd7c71c118a3d40088 (patch)
tree786198f548cc4c37edee4af2b66cef6a4fffe27e /Library
parent7333805cdea65782702be6aa016957a687a8220d (diff)
downloadhomebrew-d111868d025dc492a0e47acd7c71c118a3d40088.tar.bz2
Add depends_on spacing checks to brew_audit
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/examples/brew-audit.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Contributions/examples/brew-audit.rb b/Library/Contributions/examples/brew-audit.rb
index 50728693d..147587b7c 100755
--- a/Library/Contributions/examples/brew-audit.rb
+++ b/Library/Contributions/examples/brew-audit.rb
@@ -26,6 +26,11 @@ ff.each do |f|
problems << " * Remove 'use_mirror' from url."
end
+ # 2 (or more, if in an if block) spaces before depends_on, please
+ if /^\ ?depends_on/ =~ text
+ problems << " * Check indentation of 'depends_on'."
+ end
+
if /(#\{\w+\s*\+\s*['"][^}]+\})/ =~ text
problems << " * Try not to concatenate paths in string interpolation:\n #{$1}"
end