presidentbeef/brakeman — pull request #283 by tubaxenor (2013-03-01 05:10:07+00:00)
Title: uninitialized constant Brakeman::RenderHelper

I have an error when launch brakeman :

```
/usr/local/rvm/gems/ruby-2.0.0-p0@xxx/bundler/gems/brakeman-8edaba37e8e2/lib/brakeman/processors/slim_template_processor.rb:4:in `': uninitialized constant Brakeman::RenderHelper (NameError)
from /usr/local/rvm/gems/ruby-2.0.0-p0@xxx/bundler/gems/brakeman-8edaba37e8e2/lib/brakeman/processors/slim_template_processor.rb:3:in `'
from /usr/local/rvm/gems/ruby-2.0.0-p0@xxx/bundler/gems/brakeman-8edaba37e8e2/lib/brakeman/processor.rb:2:in `require'
from /usr/local/rvm/gems/ruby-2.0.0-p0@xxx/bundler/gems/brakeman-8edaba37e8e2/lib/brakeman/processor.rb:2:in `block in '
from /usr/local/rvm/gems/ruby-2.0.0-p0@xxx/bundler/gems/brakeman-8edaba37e8e2/lib/brakeman/processor.rb:2:in `each'
from /usr/local/rvm/gems/ruby-2.0.0-p0@xxx/bundler/gems/brakeman-8edaba37e8e2/lib/brakeman/processor.rb:2:in `'
from /usr/local/rvm/gems/ruby-2.0.0-p0@xxx/bundler/gems/brakeman-8edaba37e8e2/lib/brakeman/scanner.rb:12:in `require'
from /usr/local/rvm/gems/ruby-2.0.0-p0@xxx/bundler/gems/brakeman-8edaba37e8e2/lib/brakeman/scanner.rb:12:in `'
from /usr/local/rvm/gems/ruby-2.0.0-p0@xxx/bundler/gems/brakeman-8edaba37e8e2/lib/brakeman.rb:247:in `require'
from /usr/local/rvm/gems/ruby-2.0.0-p0@xxx/bundler/gems/brakeman-8edaba37e8e2/lib/brakeman.rb:247:in `scan'
from /usr/local/rvm/gems/ruby-2.0.0-p0@xxx/bundler/gems/brakeman-8edaba37e8e2/lib/brakeman.rb:57:in `run'
from /usr/local/rvm/gems/ruby-2.0.0-p0@xxx/bundler/gems/brakeman-8edaba37e8e2/bin/brakeman:64:in `'
from /usr/local/rvm/gems/ruby-2.0.0-p0@xxx/bin/brakeman:19:in `load'
from /usr/local/rvm/gems/ruby-2.0.0-p0@xxx/bin/brakeman:19:in `

'
from /usr/local/rvm/gems/ruby-2.0.0-p0@xxx/bin/ruby_noexec_wrapper:14:in `eval'
from /usr/local/rvm/gems/ruby-2.0.0-p0@xxx/bin/ruby_noexec_wrapper:14:in `

'
```

After this, I discovered that the way to require processors in lib/processor.rb is

```
Dir.glob("#{File.expand_path(File.dirname(__FILE__))}/processors/*.rb")
```

and which cause my issue, because "render_helper" seems not required in some files which include it, so for now i just add

```
require 'brakeman/processors/lib/render_helper'
```
to lib/brakeman/processors/slim_template_processor.rb

for a temperate fix, maybe there are some better ways to require it ?