|
RBRefersToClassRule is triggered when, in an instance method, you refer to the class of an object by it's name instead of by "self class".
The rule's name says: 'Refers to class name instead of "self class"'
It is equally triggered for class methods. In this case the name is misleading, because here it would be "self" you shoud use, instead of the class name, not "self class".
There should probably be two different rules for methods and class methods.
The problem turned up in this Stackoverflow question: https://stackoverflow.com/questions/49445392/pharo-refers-to-class-name-instead-of-self-class
|
|
|
Priority: 5 – Fix If Time
|
|
Status: Work Needed
|
|
Assigned to: Everyone
|
|
Milestone: Later
|
Go to Case
|
|