https://github.com/jonathancross/vulture-feeder
A simple python script used to destroy dead code identified by Vulture.
https://github.com/jonathancross/vulture-feeder
dead-code-removal python3 reckless
Last synced: about 1 month ago
JSON representation
A simple python script used to destroy dead code identified by Vulture.
- Host: GitHub
- URL: https://github.com/jonathancross/vulture-feeder
- Owner: jonathancross
- License: wtfpl
- Created: 2019-04-19T20:45:33.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-12-29T09:19:46.000Z (over 3 years ago)
- Last Synced: 2024-10-25T05:59:34.854Z (7 months ago)
- Topics: dead-code-removal, python3, reckless
- Language: Python
- Size: 29.3 KB
- Stars: 2
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://pypi.org/project/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](https://jonathancross.com) PGP Key: `0xC0C076132FFA7695`
### License
WTFPL - See [LICENSE](LICENSE) for more info.