Replies: 3 comments 1 reply
-
What would it look like in practice? A pre-commit hook? |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for the proposal! First, I wanna say I am not against this. But let's step back and take a look at the issue it tries to solve:
Unformatted code will lead to a failed build because other checks need the format check to succeed before being started, but IMHO, it won't delay the review process, if a contributor finds the format check failed, it is very simple to run
Pre-commit hook is not compulsory, a developer can unlink the commit script and thus skip the check. |
Beta Was this translation helpful? Give feedback.
-
Please have a look at my suggestion for a possible solution in #957. |
Beta Was this translation helpful? Give feedback.
-
Dear fellow contributors,
I'd like to propose a change to our project's development workflow that I believe will improve the efficiency and quality of our pull request (PR) process. Currently, we are checking for code formatting issues in the PR build, which can sometimes lead to failed builds and delays in the review process.
Instead, I suggest that we adopt a policy of running cargo fmt before each commit. This would ensure that the code is properly formatted before it is pushed to the repository, eliminating the need to check for formatting issues in the PR build.
The benefits of this approach include:
I believe this change will have a positive impact on our project's development process, and I'd like to hear your thoughts and feedback on this proposal. If we all agree, we can update our contributing guidelines and start implementing this new workflow.
Thank you for your consideration.
Best regards,
Nils
Beta Was this translation helpful? Give feedback.
All reactions