> Maybe we can hijack that mechanism with a class side method e.g.
> 
> rbNotReferenced
>         <lint>
> 
> 
> Do your modifications test sends of subclassesDo: and friends?
> 
> OR 
> 
> #(#MyClass1 #MyClass2 #MyClass3) collect:[:ea | (Smalltalk at: ea)
> doSomething].
> 
> The reason I ask is I'm planning to do a bunch of cleanup of a package and
> it would be nice to not worry about those cases getting missed
> 

What I did is to implement #isUsed like this in e.g the hierarchy of RBLintRule:

isUsed
        "all my sublasses are used"
        ^self name ~= ‘RBLintRule'

this way if RBLintRule is not used, it is seen by the Critique, but all 
subclasses
are used by default.

I implemented that in TestCase, too, and removed the explicit check for TestCase
subclasses from the rule.

        Marcus

Reply via email to