jendrikseipp / vulture

Find dead Python code
MIT License
3.29k stars 145 forks source link

Include code from `coverage.xml` #316

Closed sobolevn closed 12 months ago

sobolevn commented 1 year ago

Hi! Thanks for the cool project!

I think that vulture can improve its detection skills by a huge margin if coverage generated by coverage / pytest-cov is taken into an account.

This way vulture can know what code was actually called. Of course, the result will dependend on the amount of coverage %, but users can improve their coverage and the process is well-known.

RJ722 commented 12 months ago

Hi @sobolevn, thanks for your comment. This was discussed thoroughly in #109, but was closed in favour of maintaining simplicity.