diff options
| author | Jack Nagel | 2013-07-22 22:53:22 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-07-22 22:53:22 -0500 |
| commit | 3afa9c2ceb26961e67333150e73b75eaa96050d5 (patch) | |
| tree | 5614cf1dbd48c5fd350f2daca459feb0e8c42d4f /Library | |
| parent | dd9b317e245670ac06610e4f69bbba98e224b851 (diff) | |
| download | brew-3afa9c2ceb26961e67333150e73b75eaa96050d5.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 |
