Class: RuboCop::Cop::Betterment::Timeout

Inherits:
RuboCop::Cop show all
Defined in:
lib/rubocop/cop/betterment/timeout.rb

Constant Summary collapse

MSG =
'Using Timeout.timeout without a custom exception can prevent rescue blocks from executing'

Instance Method Summary collapse

Instance Method Details

#on_send(node) ⇒ Object



13
14
15
16
17
# File 'lib/rubocop/cop/betterment/timeout.rb', line 13

def on_send(node)
  return unless timeout_call?(node)

  add_offense(node)
end