class Rubydex::Rules::DynamicAncestor
Dynamic ancestor references cannot be reasoned about statically because they depend on runtime values. The program may still be valid, but the quality of the analysis degrades. In the case of ancestors, since they influence constant resolution, the degradation may be more impactful than other dynamic references.
“‘ruby class Foo < var
^^^ Dynamic ancestor reference. This might be correct, but it cannot be understood by the analysis.
include SomeClass.method_call
^^^^^^^^^^^^^^^^^^^^^ Dynamic ancestor reference.
end “‘
Public Class Methods
→ singleton(Severity::Base)
Source
# File lib/rubydex/rules/dynamic_ancestor.rb, line 23 def default_severity Severity::Information end
@override