Sha256: ecca6290e3b8f3f3c706743ec7408b25ca547bd4b30c8418a2b1e8fec30a0226

Contents?: true

Size: 622 Bytes

Versions: 70

Compression:

Stored size: 622 Bytes

Contents

require 'brakeman/processors/lib/rails3_config_processor'

class Brakeman::Rails4ConfigProcessor < Brakeman::Rails3ConfigProcessor
  APPLICATION_CONFIG = s(:call, s(:call, s(:const, :Rails), :application), :configure)
  ALT_APPLICATION_CONFIG = s(:call, s(:call, s(:colon3, :Rails), :application), :configure)

  # Look for Rails.application.configure do ... end
  def process_iter exp
    if exp.block_call == APPLICATION_CONFIG or exp.block_call == ALT_APPLICATION_CONFIG
      @inside_config = true
      process exp.block if sexp? exp.block
      @inside_config = false
    else
      super
    end

    exp
  end
end

Version data entries

70 entries across 70 versions & 3 rubygems

Version Path
brakeman-5.2.3 lib/brakeman/processors/lib/rails4_config_processor.rb
brakeman-lib-5.2.3 lib/brakeman/processors/lib/rails4_config_processor.rb
brakeman-min-5.2.3 lib/brakeman/processors/lib/rails4_config_processor.rb
brakeman-5.2.2 lib/brakeman/processors/lib/rails4_config_processor.rb
brakeman-lib-5.2.2 lib/brakeman/processors/lib/rails4_config_processor.rb
brakeman-min-5.2.2 lib/brakeman/processors/lib/rails4_config_processor.rb
brakeman-5.2.1 lib/brakeman/processors/lib/rails4_config_processor.rb
brakeman-lib-5.2.1 lib/brakeman/processors/lib/rails4_config_processor.rb
brakeman-min-5.2.1 lib/brakeman/processors/lib/rails4_config_processor.rb
brakeman-5.2.0 lib/brakeman/processors/lib/rails4_config_processor.rb
brakeman-lib-5.2.0 lib/brakeman/processors/lib/rails4_config_processor.rb
brakeman-min-5.2.0 lib/brakeman/processors/lib/rails4_config_processor.rb
brakeman-5.1.2 lib/brakeman/processors/lib/rails4_config_processor.rb
brakeman-lib-5.1.2 lib/brakeman/processors/lib/rails4_config_processor.rb
brakeman-min-5.1.2 lib/brakeman/processors/lib/rails4_config_processor.rb
brakeman-5.1.1 lib/brakeman/processors/lib/rails4_config_processor.rb
brakeman-lib-5.1.1 lib/brakeman/processors/lib/rails4_config_processor.rb
brakeman-min-5.1.1 lib/brakeman/processors/lib/rails4_config_processor.rb
brakeman-5.1.0 lib/brakeman/processors/lib/rails4_config_processor.rb
brakeman-lib-5.1.0 lib/brakeman/processors/lib/rails4_config_processor.rb