Class: RuboCop::Cop::SketchupDeprecations::SetTextureProjection

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

Constant Summary collapse

MSG =
'Method is deprecated. It creates invalid UV mapping.'.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/set_texture_projection.rb', line 14

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