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

Skip classes by Attribute #10

Closed OskarStark closed 8 months ago

OskarStark commented 1 year ago

The symfony/messenger uses an attribute #[AsMessageHandler]. If this attribute is used and/or MessageHandlerInterface is implemented, the class should not be marked as leaked

What about having specific rule sets for frameworks like Symfony and Laravel?

TomasVotruba commented 1 year ago

Hi, this makes sense. If class contains one of specific list of attributes, it should be skipped :+1:

TomasVotruba commented 8 months ago

Closing for lack of feedback, to keep issue tracker focus on unclear issues that needs our attention.

Feel free to send PR with the feature :+1:

Thank you for understanding :slightly_smiling_face:

ruudk commented 6 months ago

Implemented in https://github.com/TomasVotruba/class-leak/pull/33