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

Do not skip on FuncCall #34

Closed ruudk closed 6 months ago

ruudk commented 6 months ago

The call could be a static call, in that case, you do want to traverse.

Fixes #21

samsonasik commented 6 months ago

@ruudk could you add failing test case?

ruudk commented 6 months ago

@samsonasik Thanks, I wrote a test and then came up with a different solution that's better.

samsonasik commented 6 months ago

Thank you @ruudk , I don't have access to this repo so I will let @TomasVotruba decide ;)

TomasVotruba commented 6 months ago

Looks good :+1: Thank you