A script to recklessly wipe out (supposedly) dead code identified by Vulture. Warning: this may destroy your software if vulture is incorrect.
Install vulture tool for identifying dead code.
pip install vulture
Check what vulture finds:
vulture mydir
If you agree to wipe out the code vulture found:
vulture mydir | vulture-feeder
Each modified file will be written as FILENAME.new so as not to damage the original. Eventually this will change to overwrite the original file.
Pre-Alpha! Only functions are deleted currently.
You may need to do some manual editing to fix things that break.
cd test
./_run_tests.sh
- Comments are not properly handled yet and can break the script.
Jonathan Cross PGP Key: 0xC0C076132FFA7695
WTFPL - See LICENSE for more info.