deadcode icon indicating copy to clipboard operation
deadcode copied to clipboard

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

Open clusterf opened this issue 1 year ago • 2 comments

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 ☺️

clusterf avatar Aug 30 '24 10:08 clusterf

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

Freyb avatar Nov 14 '24 16:11 Freyb

+1, this would make the tool much more useful in situations such as CI

sbc100 avatar Sep 23 '25 18:09 sbc100