module RuboCop

Correct `send` expressions in include statements by constant literals.

Sorbet, the static checker, is not (yet) able to support constructs on the following form:

“`ruby class MyClass

include send_expr

end “`

Multiple occurences of this can be found in Shopify's code base like:

“`ruby include Rails.application.routes.url_helpers “` or “`ruby include Polaris::Engine.helpers “`

Correct superclass `send` expressions by constant literals.

Sorbet, the static checker, is not (yet) able to support constructs on the following form:

“`ruby class Foo < send_expr; end “`

Multiple occurences of this can be found in Shopify's code base like:

“`ruby class ShopScope < Component::TrustedIdScope “` or “`ruby class ApiClientEligibility < Struct.new(:api_client, :match_results, :shop) “`

The original code is from github.com/rubocop-hq/rubocop-rspec/blob/master/lib/rubocop/rspec/inject.rb See github.com/rubocop-hq/rubocop-rspec/blob/master/MIT-LICENSE.md