jendrikseipp / vulture

Find dead Python code
MIT License
3.38k stars 148 forks source link

Adding a new option --exit-zero #294

Closed liyao001 closed 1 year ago

liyao001 commented 1 year ago

Related tools, like pylint and flake8, have similar options to make the program always return zero so that the tool can be easily integrated into continuous integration pipelines.

RJ722 commented 1 year ago

Hello @liyao001, one way to introduce Vulture into your CI/CD pipelines without relying on the --exit-zero flag is to call it with || true at the end:

$ vulture . || true

I'm a bit opposed to adding functionality (which we'll need to test and maintain) if the same can be achieved easily by other means.

jendrikseipp commented 1 year ago

I agree with @RJ722.