[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#788222: ITP: vulture -- scanner for unused Python code



Package: wnpp
Severity: wishlist
Owner: Daniel Stender <debian@danielstender.com>

* Package name    : vulture
  Version         : 0.6
  Upstream Author : Jendrik Seipp <jendrikseipp@web.de>
* URL             : https://bitbucket.org/jendrikseipp/vulture
* License         : GPL-3.0
  Programming Lang: Python
  Description     : finds unused classes, functions and variables

Vulture finds unused classes, functions and variables in your code. This helps you cleanup and find errors in your programs. If you run it on both your library and test suite you can find untested code.
Due to Python's dynamic nature it is impossible to find all dead code for a static code analyzer like vulture, because it ignores scopes and scans only token names. Additionally, some dynamic items that are not explicitly called in the code may be incorrectly reported as dead code.

Vulture could be employed by Prospector [1]. Though optional, this would make a nice wrap of this packaging approach.

It's a CLI tool and therefore would belong to PAPT. A RFP has been filed for another "vulture" in 2012 [2], but this bug doesn't look very active.

[1] https://bugs.debian.org/781165
    ITP: prospector -- Python code analysis tool

[2] https://bugs.debian.org/691425
    RFP: vulture -- An isometric graphical interface for NetHack, Slash'EM and UnNetHack


Reply to: