class RuboCop::Cop::Sorbet::ForbidIncludeConstLiteral
def find_free_name(base_name)
we need to ensure that we don't use the same name twice in the same
Since each include uses its own local variable to store the send result,
Find a free local variable name
def find_free_name(base_name) return base_name unless used_names.include?(base_name) i = 2 i += 1 while used_names.include?("#{base_name}#{i}") "#{base_name}#{i}" end