Code critics relies on simple rules, such as the use of the selector #isKindOf: .

It does not detect the second case because the rule is simple, though both are questionable.

Best,

2015-04-24 18:24 GMT+02:00 Peter Uhn��k <i.uhnak@gmail.com>:
Why does CodeCritic (QualityAssistant) considers this questionable

~~~~~~~~~~~~~~~~
canBeTargetFor: aController
^ aController isKindOf: DMNodeController
~~~~~~~~~~~~~~~~

and yet this seems fine to him

~~~~~~~~~~~~~~~~
canBeTargetFor: aController
^ aController class = DMNodeController
~~~~~~~~~~~~~~~~

shouldn't it be the same?

Peter