Parent

Methods

Files

Class/Module Index [+]

Quicksearch

RuboCop::Cop::Lint::Debugger

This cop checks for calls to debugger or pry.

Constants

BYEBUG_NODE

byebug call node

(send nil :byebug)

DEBUGGER_NODE

debugger call node

(send nil :debugger)

DEBUGGER_NODES
MSG
PRY_NODE

binding.pry node

(send

(send nil :binding) :pry)
REMOTE_PRY_NODE

binding.remote_pry node

(send

(send nil :binding) :remote_pry)

Public Instance Methods

on_send(node) click to toggle source
# File lib/rubocop/cop/lint/debugger.rb, line 38
def on_send(node)
  return unless DEBUGGER_NODES.include?(node)
  add_offense(node,
              :expression,
              format(MSG, node.loc.expression.source))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.