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

Warn on skipped but non-leaked classes #6

Closed szepeviktor closed 1 year ago

szepeviktor commented 1 year ago

Let's say I skip a class that is referenced in the code. vendor/bin/class-leak check src/ --skip-type 'A\Referenced\Class' It would be nice to get a warning about it.

TomasVotruba commented 1 year ago

I don't get this one. Could you share an example?

szepeviktor commented 1 year ago
  1. You skip a class because it is really unused
  2. You begin using that class
  3. Run the same class-leak command again
  4. Get a warning that the above mentioned skipped class is not unused
TomasVotruba commented 1 year ago

Ah, I see. Like reporting unnecesary ignores :)

Feel free to contribute, if you like :+1: