Class: RuboCop::Cop::SketchupRequirements::ApiNamespace

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

Overview

Do not modify the Sketch API. This will affect other extensions and very likely cause them to fail.

This requirement also include adding things into the SketchUp API namespace. The API namespace is reserved for future additions to the API.

Constant Summary collapse

MSG =
'Do not modify the SketchUp API.'
NAMESPACES =
%w[
  Geom Layout Sketchup SketchupExtension UI
].freeze

Constants inherited from SketchUp::Cop

SketchUp::Cop::SKETCHUP_DEPARTMENT_SEVERITY

Constants included from SketchUp::Config

SketchUp::Config::DEFAULT_CONFIGURATION

Instance Method Summary collapse

Methods included from SketchUp::NamespaceChecker

#check_namespace, #in_namespace?, #on_casgn, #on_class, #on_def, #on_module

Methods inherited from SketchUp::Cop

inherited, #relevant_file?

Instance Method Details

#namespacesObject



23
24
25
# File 'lib/rubocop/sketchup/cop/requirements/api_namespace.rb', line 23

def namespaces
  NAMESPACES
end