-
Notifications
You must be signed in to change notification settings - Fork 54
Deadcode Plugin
Iury O. G. Figueiredo edited this page Dec 1, 2019
·
1 revision
A vy plugin to find unused code in projects by using python vulture.
The deadcode plugin uses python vulture. Install it with:
pip install vulture
After that just place the following code in your ~/.vy/vyrc file. The best place it is in your extra plugin section.
# Python analysis through vulture.
from vyapp.plugins import deadcode
# The path to vulture executable. No need to set it
# if vulture is on your env path.
# deadcode.PythonAnalysis.PATH = 'vulture'
autoload(deadcode)
Once the plugin is properly installed just open some python file, switch to PYTHON mode with:
<Key-exclam>
Then press:
<Key-o>
After that it will display all reported errors from vulture in a line picker widget. You can just browse the reports and jump to the error line by pressing:
<Return>