Class: RuboCop::Cop::SketchupDeprecations::RequireAll
- Inherits:
-
SketchUp::Cop
- Object
- SketchUp::WorkaroundCop
- SketchUp::Cop
- RuboCop::Cop::SketchupDeprecations::RequireAll
- Defined in:
- lib/rubocop/sketchup/cop/deprecations/require_all.rb
Overview
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.
Constant Summary collapse
- MSG =
'Method is deprecated because it adds the given path '\ 'to $LOAD_PATH.'
Constants inherited from SketchUp::Cop
SketchUp::Cop::SKETCHUP_DEPARTMENT_SEVERITY
Constants included from SketchUp::Config
SketchUp::Config::DEFAULT_CONFIGURATION
Instance Method Summary collapse
Methods inherited from SketchUp::Cop
Instance Method Details
#on_send(node) ⇒ Object
18 19 20 21 22 |
# 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 |