lib/brakeman/processors/lib/find_call.rb in brakeman-2.6.3 vs lib/brakeman/processors/lib/find_call.rb in brakeman-3.0.0

- old
+ new

@@ -1,6 +1,6 @@ -require 'brakeman/processors/base_processor' +require 'brakeman/processors/lib/basic_processor' #Finds method calls matching the given target(s). # #-- This should be deprecated --# # #-- Do not use for new code --# # @@ -29,10 +29,10 @@ # #Find all calls to length(), no matter the target # FindCall.new nil, :length # # #Find all calls to sub, sub!, gsub, or gsub! # FindCall.new nil, /^g?sub!?$/ -class Brakeman::FindCall < Brakeman::BaseProcessor +class Brakeman::FindCall < Brakeman::BasicProcessor def initialize targets, methods, tracker, in_depth = false super tracker @calls = [] @find_targets = targets