TomasVotruba / unused-public

Find Unused Public Elements in Your Code
https://tomasvotruba.com/blog/can-phpstan-find-dead-public-methods/
MIT License
151 stars 12 forks source link

detect cross repository unused methods #136

Closed staabm closed 2 hours ago

staabm commented 3 hours ago

we would love to find methods which are marked as @api but are no longer used in any of the comsuming repos of our internal library repositories.

I am thinking about dumping collector call-site data into a file and process such dumped files with the rules. this would allow me to combine the call-site data of several repositories and use it to feed the rules detect unused methods, even across repositories.

would this be something you are interessted in?

TomasVotruba commented 2 hours ago

I think this is different use case and better fits for a standalone project that can build on this one :) This package only deals with current project and I want to keep it that way.