# File lib/brakeman/processors/lib/find_call.rb, line 83 def process_call exp target = get_target exp.target method = exp.method process_call_args exp if match(@find_targets, target) and match(@find_methods, method) if @current_template @calls << Sexp.new(:result, @current_template, exp).line(exp.line) else @calls << Sexp.new(:result, @current_module, @current_class, @current_method, exp).line(exp.line) end end #Normally FindCall won't match a method invocation that is the target of #another call, such as: # # User.find(:first, :conditions => "user = '#{params['user']}').name # #A search for User.find will not match this unless @in_depth is true. if @in_depth and call? exp.target process exp.target end exp end