Closed erwanncloarec closed 5 months ago
When performing with success a fix cargo shear --fix the exit code is 1, even if the fix is successful and there is no unused dependencies at the end.
cargo shear --fix
When performing with success a fix cargo shear --fix the exit code is 0 when there is no unused dependencies at the end.
We can have automatic hooks that will fail even though the fix operation is successful. It's the behavior of other tools like eslint or biome.
Thanks for your work!
Current behavior:
When performing with success a fix
cargo shear --fix
the exit code is 1, even if the fix is successful and there is no unused dependencies at the end.Proposed behavior:
When performing with success a fix
cargo shear --fix
the exit code is 0 when there is no unused dependencies at the end.Why:
We can have automatic hooks that will fail even though the fix operation is successful. It's the behavior of other tools like eslint or biome.
Thanks for your work!