class RuboCop::Cop::Sorbet::SignatureCop

You can subclass it to use the ‘on_signature` trigger and the `signature?` node matcher.
Abstract cop specific to Sorbet signatures

def on_block(node)

def on_block(node)
  on_signature(node) if signature?(node)
end

def on_signature(_)

def on_signature(_)
  # To be defined in subclasses
end