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 allowed_recv(recv)
def allowed_recv(recv) return true unless recv return true if with_runtime?(recv) return true if without_runtime?(recv) false end
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