-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add argument to filter for unused function, variable or class #303
Comments
Hey! Hoping to work on this and get a fix up in the next few weeks. |
Happy to discuss a high-level strategy for implementing this, if you want to avoid implementation work. |
That would be great, actually! How would you like to get in touch? |
Here in the comments is fine. |
no progress on this I guess? |
I only want to see unused function or class (not variables, too many false positive), I'm using:
|
hm, and something that works as a pre-commit hook? |
As far as I can see there is no way of telling vulture to only search for e.g. dead functions but not dead variables and classes, etc.
If that was added I could cover the following use case:
only check for unused global variables (written in CAPITAL_STYLE). The reason is, there seem to be a lot of false positives for dead attribute detection and there are other tools that capture this well (e.g. Syntax highlighting).
Also it could enable me to react differently based on which outcome I get, i.e. warning for unused variables but error on unused function.
The text was updated successfully, but these errors were encountered: