Class: RuboCop::Cop::SketchupRequirements::GlobalInclude
- Inherits:
-
SketchUp::Cop
- Object
- SketchUp::WorkaroundCop
- SketchUp::Cop
- RuboCop::Cop::SketchupRequirements::GlobalInclude
- 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
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
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 |