Manuscript (Case [Issue]21644) Tools - RBRefersToClassRule gives misleading advice for class methods

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Manuscript (Case [Issue]21644) Tools - RBRefersToClassRule gives misleading advice for class methods

Pharo Issue Tracker
Manuscript Notification
avatar
Martin Walk opened Case 21644: RBRefersToClassRule gives misleading advice for class methods and assigned it to Everyone:
Bug in Project:  Tools: 1. Pharo Image  •  You are subscribed to this case
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 Priority: 5 – Fix If Time Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Later

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
https://lists.gforge.inria.fr/mailman/listinfo/pharo-bugtracker