We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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!
The text was updated successfully, but these errors were encountered:
feat: exit code is 0 when performing fix (#52)
fcbb13f
Fixes #51 Example: ![image](https://github.com/Boshen/cargo-shear/assets/6513197/96525ba6-1689-43b6-bf07-03c1e52b511c)
Successfully merging a pull request may close this issue.
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!
The text was updated successfully, but these errors were encountered: