class RuboCop::Cop::SketchupDeprecations::RequireAll

Method is deprecated because it adds the given path to `$LOAD_PATH`. Modifying `$LOAD_PATH` is bad practice because it can cause extensions to inadvertently load the wrong file.

Constants

MSG

Public Instance Methods

on_send(node) click to toggle source
# File lib/rubocop/sketchup/cop/deprecations/require_all.rb, line 18
def on_send(node)
  return unless require_all?(node)

  add_offense(node, location: :selector)
end