class RuboCop::Cop::Rails::RequireDependency

require_dependency ‘some_lib’
# bad
@example
NOTE: This cop is disabled by default. Please enable it if you are using Zeitwerk mode.
Applications running in Zeitwerk mode should not use ‘require_dependency`.
If the constant name is dynamic, camelize if needed, and constantize.
just refer to classes and modules normally.
In Zeitwerk mode, the semantics should match Ruby’s and no need to be defensive with load order,
‘require_dependency` is an obsolete method for Rails applications running in Zeitwerk mode.
Checks for the usage of `require_dependency`.

def on_send(node)

def on_send(node)
  require_dependency_call?(node) { add_offense(node) }
end