Skip to content

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants