Skip to content

ci: code format check #1487

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

Merged
merged 1 commit into from
Jul 2, 2025
Merged

Conversation

NathanBaulch
Copy link
Contributor

I noticed that trailing whitespace often slips through and has to be fixed in a code_style commit.
This PR adds a GH actions workflow that runs dotnet format on push. This check will fail on trailing whitespace or any other code formatting violation.

@love-linger
Copy link
Collaborator

Why not let it format codes and commit if files are changed directly?

@NathanBaulch
Copy link
Contributor Author

Sure, if you like, I was just keeping it simple.
I personally prefer the original author to know that they're not following guidelines and hopefully adjust their future commits.

@love-linger love-linger self-assigned this Jul 2, 2025
@love-linger love-linger added the enhancement New feature or request label Jul 2, 2025
@love-linger love-linger merged commit 4f266a2 into sourcegit-scm:develop Jul 2, 2025
13 checks passed
@NathanBaulch NathanBaulch deleted the formatcheck branch July 2, 2025 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
2 participants