提交 1031f505 编写于 作者: J Justin Collins

Handle self calls better

上级 cbb05c84
......@@ -121,6 +121,8 @@ class Brakeman::FindAllCalls < Brakeman::BaseProcessor
exp[1]
when :colon2
class_name exp
when :self
@current_class || @current_module || nil
else
exp
end
......
......@@ -24,6 +24,8 @@ module Brakeman::ProcessorHelper
"::#{exp[1]}".to_sym
when :call
process exp
when :self
@current_class || @current_module || nil
else
raise "Error: Cannot get class name from #{exp}"
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册