class RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral
def initialize(*)
def initialize(*) super self.used_names = Set.new end
def on_send(node)
def on_send(node) return unless not_lit_const_include?(node) do |send_argument| ![:const, :self].include?(send_argument.type) end parent = node.parent return unless parent parent = parent.parent if [:begin, :block].include?(parent.type) return unless [:module, :class, :sclass].include?(parent.type) add_offense(node) end