diff options
| author | Jack Nagel | 2013-07-22 22:53:22 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-07-22 22:53:22 -0500 |
| commit | 65786d6ebe2559739429939c575dc76bd4f00fab (patch) | |
| tree | 2ab0186f5f793486c2353063a854bc724d407aa1 /Library | |
| parent | 9456d8a4ee1415ef8054964d9b58cb8dc0e6047f (diff) | |
| download | homebrew-65786d6ebe2559739429939c575dc76bd4f00fab.tar.bz2 | |
audit: fix indentation
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/audit.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 08556a622..3d2321256 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -555,12 +555,12 @@ class FormulaAuditor # Checks that apply only to code in def caveats if text =~ /(\s*)def\s+caveats((.*\n)*?)(\1end)/ || text =~ /(\s*)def\s+caveats;(.*?)end/ caveats_body = $2 - if caveats_body =~ /[ \{=](python[23]?)\.(.*\w)/ - # So if in the body of caveats there is a `python.whatever` called, - # check that there is a guard like `if python` or similiar: - python = $1 - method = $2 - unless caveats_body =~ /(if python[23]?)|(if build\.with\?\s?\(?['"]python)|(unless build.without\?\s?\(?['"]python)/ + if caveats_body =~ /[ \{=](python[23]?)\.(.*\w)/ + # So if in the body of caveats there is a `python.whatever` called, + # check that there is a guard like `if python` or similiar: + python = $1 + method = $2 + unless caveats_body =~ /(if python[23]?)|(if build\.with\?\s?\(?['"]python)|(unless build.without\?\s?\(?['"]python)/ problem "Please guard `#{python}.#{method}` like so `#{python}.#{method} if #{python}`" end end |
