class RuboCop::Cop::Sorbet::ForbidTSig
end
class Example
# good
end
include T::Sig
module Example
# bad
end
extend T::Sig
class Example
# bad
@example
where ‘T::Sig` is not needed and including it is redundant.
This is useful when using RBS or RBS-inline syntax for type signatures,
Forbids `extend T::Sig` and `include T::Sig` in classes and modules.
def on_send(node)
def on_send(node) return unless t_sig?(node) add_offense(node, message: format(MSG, method: node.method_name)) end