Re:Vulture: Find Dead Python Code
by bottled_poe on Wednesday May 05, 2021 @07:36PM
(#27057304)
I feel unit test coverage is a better approach to this problem.
[ Parent
| on HN ]
This doesn't really help. I've found plenty of code before that isn't marked by the IDE/linters as unused because it's called by a unit test, but nothing else.
Re:Vulture: Find Dead Python Code
by jimmaswell on Wednesday May 05, 2021 @07:52PM
(#27057418)
A unit test covering code doesn't mean the code is actually used, and some code isn't feasible to cover in unit tests.
Well atleast the code will be used then. Fingers crossed it already has a unit test, so once the dead code is remove the test can be too