Class: RuboCop::Cop::G2::RawConnectionExecute

Inherits:
Cop
  • Object
show all
Defined in:
lib/rubocop/cop/g2/raw_connection_execute.rb

Constant Summary collapse

MSG =
'The result returned by this statement is manually memory managed. Please use one of the'\
' exec_query/exec_update/exec_insert/exec_delete wrappers instead.'.freeze

Instance Method Summary collapse

Instance Method Details

#on_send(node) ⇒ Object



12
13
14
15
# File 'lib/rubocop/cop/g2/raw_connection_execute.rb', line 12

def on_send(node)
  return unless raw_connection_execute?(node)
  add_offense(node)
end