diff options
| author | Adam Vandenberg | 2011-11-27 08:39:44 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2011-11-27 08:39:44 -0800 |
| commit | 7e94a7d048d269945c245c3fa396de10b0e3d6bc (patch) | |
| tree | c54e5617b4b0464389df515e89f53d5382b25b72 /Library | |
| parent | c8ffc2f1e89de95dc37d7cfb214f97028d1dc2d5 (diff) | |
| download | homebrew-7e94a7d048d269945c245c3fa396de10b0e3d6bc.tar.bz2 | |
audit: remove --strict
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Homebrew/cmd/audit.rb | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 87d5b9d5f..ede2ad3a3 100755 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -118,7 +118,7 @@ def audit_formula_text name, text # xcodebuild should specify SYMROOT if text =~ /xcodebuild/ and not text =~ /SYMROOT=/ problems << " * xcodebuild should be passed an explicit \"SYMROOT\"" - end if strict? + end # using ARGV.flag? for formula options is generally a bad thing if text =~ /ARGV\.flag\?/ @@ -273,16 +273,6 @@ def audit_formula_instance f return problems end -def audit_formula_caveats f - problems = [] - - if f.caveats.to_s =~ /^\s*\$\s+/ - problems << " * caveats should not use '$' prompts in multiline commands." - end if strict? - - return problems -end - module Homebrew extend self def audit errors = false @@ -291,7 +281,6 @@ module Homebrew extend self problems = [] problems += audit_formula_instance f problems += audit_formula_urls f - problems += audit_formula_caveats f perms = File.stat(f.path).mode if perms.to_s(8) != "100644" |
