Method: RuboCop::Cop::Security::MarshalLoad#marshal_load

Defined in:
lib/rubocop/cop/security/marshal_load.rb

#marshal_load(node) ⇒ Object

[View source]

26
27
28
29
# File 'lib/rubocop/cop/security/marshal_load.rb', line 26

def_node_matcher :marshal_load, <<~PATTERN
  (send (const {nil? cbase} :Marshal) ${:load :restore}
  !(send (const {nil? cbase} :Marshal) :dump ...))
PATTERN