jendrikseipp / vulture

Find dead Python code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

detect public functions that can be private

uriva opened this issue · comments

commented

I think the information vulture has can be used to easily compute functions that can be marked private (_like_this) by identifying that they are "dead code" wrt all files except the one they are in.

This could be very useful.

That's an interesting suggestion, but I think it will lead to too many false positives.

commented

the only false positive I can imagine is if they are used outside the repo, but then this is exactly the false positives vulture would return for public functions that are part of the external API.
Am I missing something?