class RuboCop::Cop::SketchupSuggestions::DynamicComponentInternals

Tapping into the internals of Dynamic Components is risky. It could change at any time. If you create an extension that depend on the internal logic of another extension you are at the mercy of change and luck!

Constants

MSG

Public Instance Methods

check_global(node) click to toggle source
# File lib/rubocop/sketchup/cop/suggestions/dc_internals.rb, line 24
def check_global(node)
  global_var, = *node
  return unless dc_global_var?(global_var)

  add_offense(node, location: :name, severity: :warning)
end
on_gvar(node) click to toggle source
# File lib/rubocop/sketchup/cop/suggestions/dc_internals.rb, line 16
def on_gvar(node)
  check_global(node)
end
on_gvasgn(node) click to toggle source
# File lib/rubocop/sketchup/cop/suggestions/dc_internals.rb, line 20
def on_gvasgn(node)
  check_global(node)
end