You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What if we introduce optional path parameter to phpunit.xml in the same manner as containerXmlPath in phpstan/phpstan-symfony package? Then we can analyse suffix option for each directory and check all class names.
Well, maybe. We can look at this problem from different angles. We can think that some class is unused. But we also can think that some class has a wrong name.
Also we can interpret "unused class" in different ways. What if some test class with wrong name referenced by another class? Is it used or not then?
Activity
ondrejmirtes commentedon May 16, 2025
Isn't this something that https://github.com/shipmonk-rnd/dead-code-detector could take care of once it can detect unused classes? https://github.com/shipmonk-rnd/dead-code-detector
aivchen commentedon May 16, 2025
Well, maybe. We can look at this problem from different angles. We can think that some class is unused. But we also can think that some class has a wrong name.
Also we can interpret "unused class" in different ways. What if some test class with wrong name referenced by another class? Is it used or not then?