Class: RuboCop::Cop::SketchupSuggestions::SketchupFindSupportFile
- Inherits:
-
SketchUp::Cop
- Object
- SketchUp::WorkaroundCop
- SketchUp::Cop
- RuboCop::Cop::SketchupSuggestions::SketchupFindSupportFile
- Defined in:
- lib/rubocop/sketchup/cop/suggestions/sketchup_find_support_file.rb
Overview
Avoid Sketchup.find_support_file to find your extension’s files.
Constant Summary collapse
- MSG =
"Avoid Sketchup.find_support_file to find your extension's files.".freeze
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
20 21 22 23 |
# File 'lib/rubocop/sketchup/cop/suggestions/sketchup_find_support_file.rb', line 20 def on_send(node) return unless sketchup_find_support_file?(node) add_offense(node, location: :expression) end |