Class: RuboCop::Cop::SketchupRequirements::GlobalInclude

Inherits:
SketchUp::Cop
  • Object
show all
Includes:
SketchUp, SketchUp::NoCommentDisable
Defined in:
lib/rubocop/sketchup/cop/requirements/global_include.rb

Constant Summary collapse

MSG =
'Do not include into global namespace.'.freeze

Constants included from SketchUp

SketchUp::CONFIG, SketchUp::VERSION, SketchUp::WorkaroundCop

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


17
18
19
20
# File 'lib/rubocop/sketchup/cop/requirements/global_include.rb', line 17

def on_send(node)
  return unless global_include?(node)
  add_offense(node, severity: :error)
end