TomasVotruba / class-leak

Find leaking classes that you never use... and get rid of them.
https://tomasvotruba.com/blog/how-to-avoid-maintaining-classes-you-dont-use
MIT License
75 stars 6 forks source link

Parent classes should not be marked as used when children classes use them #37

Open ruudk opened 6 months ago

ruudk commented 6 months ago

Let's say you have the following:

abstract class A {}
class B extends A {}

They both link to each other.

A should not be marked as used because B references it.

If A and B are never used, they should both be marked as unused.