class RuboCop::Cop::InternalAffairs::NodeMatcherDirective

Checks that node matcher definitions are tagged with a YARD ‘@!method` directive so that editors are able to find the dynamically defined method.

@example

# bad
def_node_matcher :foo?, <<~PATTERN
  ...
PATTERN

# good
# @!method foo?(node)
def_node_matcher :foo?, <<~PATTERN
  ...
PATTERN