Class: RuboCop::Cop::SketchupDeprecations::RequireAll

Inherits:
SketchUp::Cop
  • Object
show all
Defined in:
lib/rubocop/sketchup/cop/deprecations/require_all.rb

Constant Summary collapse

MSG =
'Method is deprecated because it adds the given path to $LOAD_PATH.'.freeze

Constants included from SketchUp::Config

SketchUp::Config::DEFAULT_CONFIGURATION

Instance Method Summary collapse

Methods inherited from SketchUp::Cop

inherited, #relevant_file?

Instance Method Details

#on_send(node) ⇒ Object


14
15
16
17
# File 'lib/rubocop/sketchup/cop/deprecations/require_all.rb', line 14

def on_send(node)
  return unless require_all?(node)
  add_offense(node, location: :expression)
end