Summary
Add a dotnet format --verify-no-changes step to the GitHub Actions CI workflow so that code style is enforced on every PR.
Details
Add a step to .github/workflows/ci.yml that runs:
- name: Check code formatting
run: dotnet format --verify-no-changes --verbosity diagnostic
This should run after dotnet restore but before dotnet build, so contributors get fast feedback on formatting issues without waiting for a full build.
The step will fail the CI check if any code doesn't match the .editorconfig rules, giving contributors a clear signal of what to fix.
Acceptance Criteria
Dependencies
Summary
Add a
dotnet format --verify-no-changesstep to the GitHub Actions CI workflow so that code style is enforced on every PR.Details
Add a step to
.github/workflows/ci.ymlthat runs:This should run after
dotnet restorebut beforedotnet build, so contributors get fast feedback on formatting issues without waiting for a full build.The step will fail the CI check if any code doesn't match the
.editorconfigrules, giving contributors a clear signal of what to fix.Acceptance Criteria
dotnet format --verify-no-changesstep added to CI workflowDependencies
.editorconfig) being in placedotnet formatpass) being completed