Class: Rubydex::Rules::UndefinedConstantVisibilityTarget

Inherits:
Rubydex::Rule
  • Object
show all
Defined in:
lib/rubydex/rules/undefined_constant_visibility_target.rb

Overview

Undefined constant visibility target means the analysis couldn't find the definition for the constant the code is attempting to change visibility of. It could be defined through meta-programming or it indeed does not exist.

class Foo
  private_constant :Bar
                   ^^^ Undefined constant visibility target. The constant `Bar` is not defined.
end

Class Method Summary collapse

Methods inherited from Rubydex::Rule

rule_name, severity

Class Method Details

.default_severityObject

: -> singleton(Severity::Base)



21
22
23
# File 'lib/rubydex/rules/undefined_constant_visibility_target.rb', line 21

def default_severity
  Severity::Warning
end