lib/brakeman/processors/alias_processor.rb
def process_cdecl exp
    if sexp? exp.rhs
      exp.rhs = process exp.rhs
    end

    if @tracker
      @tracker.add_constant exp.lhs,
        exp.rhs,
        :file => @current_file,
        :module => @current_module,
        :class => @current_class,
        :method => @current_method
    end

    if exp.lhs.is_a? Symbol
      match = Sexp.new(:const, exp.lhs)
    else
      match = exp.lhs
    end

    env[match] = get_rhs(exp)

    exp
  end
#Constant assignments like
# BIG_CONSTANT = 234810983
Constant assignments like
BIG_CONSTANT = 234810983
Constant assignments like BIG_CONSTANT = 234810983
def process_cdecl exp
    if sexp? exp.rhs
      exp.rhs = process exp.rhs
    end
    if @tracker
      @tracker.add_constant exp.lhs,
        exp.rhs,
        :file => @current_file,
        :module => @current_module,
        :class => @current_class,
        :method => @current_method
    end
    if exp.lhs.is_a? Symbol
      match = Sexp.new(:const, exp.lhs)
    else
      match = exp.lhs
    end
    env[match] = get_rhs(exp)
    exp
  end
def process_cdecl exp if sexp? exp . rhs exp . rhs = process exp . rhs end if @tracker @tracker . add_constant exp . lhs , exp . rhs , :file => @current_file , :module => @current_module , :class => @current_class , :method => @current_method end if exp . lhs . is_a? Symbol match = Sexp . new ( :const , exp . lhs ) else match = exp . lhs end env [ match ] = get_rhs ( exp ) exp end
Constant assignments like
BIG_CONSTANT = 234810983
Constant assignments like BIG_CONSTANT = 234810983
exp