Re:Vulture: Find Dead Python Code
by richardxia on Thursday May 06, 2021 @12:39AM
(#27059218)
I've had some success using it in a Django app where I generate a whitelist from my main branch, and then I run vulture on my feature branch just before I open up a pull request. This way, it doesn't matter how many false positives there are because I'm only really trying to check if my changes cause any new issues. It's still not as good as other languages with better static analysis tools, but it's better than nothing.
It seems like people build giant whitelists when using it with Flask, Django, and other frameworks. Given the volume of false positives, it seems like a maintenance burden to me.
Maybe there's some trick to using it effectively, but it's not obvious to me.