Skip to content

A simple python script used to destroy dead code identified by Vulture.

License

Notifications You must be signed in to change notification settings

jonathancross/vulture-feeder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vulture Feeder

A script to recklessly wipe out (supposedly) dead code identified by Vulture. Warning: this may destroy your software if vulture is incorrect.

Requirements

Install vulture tool for identifying dead code.

pip install vulture

Usage

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.

Status

Pre-Alpha! Only functions are deleted currently.

You may need to do some manual editing to fix things that break.

Testing

cd test
./_run_tests.sh

Known Bugs

  • Comments are not properly handled yet and can break the script.

Author

Jonathan Cross PGP Key: 0xC0C076132FFA7695

License

WTFPL - See LICENSE for more info.

About

A simple python script used to destroy dead code identified by Vulture.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published