albertas / deadcode

Find and fix unused Python code using command line.
GNU Affero General Public License v3.0
90 stars 4 forks source link

[bug] Command's exit code is 0 when dead code is found #20

Open clusterf opened 3 months ago

clusterf commented 3 months ago

Hello,

It would be nice if the exit code of the "deadcode" command would be non-zero when dead code is detected. This way, it would be easier to integrate the command in a pipeline for example, where a job would fail if dead code is detected.

Please let me know what you think about it. If needed, I can make a contribution to the repository.

Thanks ☺️

Freyb commented 2 weeks ago

+1, right not it's cumbersome to detect if any changes were made.