deadcode
deadcode copied to clipboard
[bug] Command's exit code is 0 when dead code is found
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 ☺️
+1, right not it's cumbersome to detect if any changes were made.
+1, this would make the tool much more useful in situations such as CI