Class: RuboCop::Cop::SketchupDeprecations::AddSeparatorToMenu

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

Overview

Avoid adding separators to top level menus. If you require grouping use a sub-menu instead.

Constant Summary collapse

MSG =
'Method is deprecated.'

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

inherited, #relevant_file?

Instance Method Details

#on_send(node) ⇒ Object



16
17
18
19
20
# File 'lib/rubocop/sketchup/cop/deprecations/add_separator_to_menu.rb', line 16

def on_send(node)
  return unless add_separator_to_menu?(node)

  add_offense(node, location: :selector)
end