Class: RuboCop::Cop::SketchupDeprecations::ShowRubyPanel

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

Constant Summary collapse

MSG =
'Method is deprecated. Use `SKETCHUP_CONSOLE.show` instead.'.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/show_ruby_panel.rb', line 14

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