Skip to content
New issue

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

Add rustfmt warning to CI #314

Merged
merged 1 commit into from
Nov 2, 2023
Merged

Add rustfmt warning to CI #314

merged 1 commit into from
Nov 2, 2023

Conversation

nepet
Copy link
Collaborator

@nepet nepet commented Nov 2, 2023

This adds a job to the CI that checks every rust file that is changed by the PR for formatting. It will however not fail the CI (continue-on-error: true) and still result in a green check mark.

We could add check-rustfmt as a prerequisite to check-self if we want to run it locally and fail the CI if the formatter complains on changed files

Another option would be to use something like https://github.com/marketplace/actions/continue-on-error-comment to write a comment into the PR about formatting issues. That would not be as aggressive as to fail the CI or to enforce local checks.

Tell me what you think about this!

@nepet nepet force-pushed the 202311-add-format-warning branch 2 times, most recently from 3ce544b to 4996270 Compare November 2, 2023 13:28
We are all human and forget to run formatters and checks. Let the CI
help us to recognize and remedy our human failings!

Signed-off-by: Peter Neuroth <[email protected]>
@nepet nepet force-pushed the 202311-add-format-warning branch from 4996270 to 5c556bd Compare November 2, 2023 13:30
@cdecker
Copy link
Collaborator

cdecker commented Nov 2, 2023

ACK 5c556bd

@cdecker cdecker merged commit 63a418c into main Nov 2, 2023
11 checks passed
@cdecker cdecker deleted the 202311-add-format-warning branch November 2, 2023 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants