Skip to content

Commit 837f6b4

Browse files
LeeCampbellclaude
andauthored
feat(#117): add dotnet format check to CI pipeline (#154)
Insert `dotnet format --verify-no-changes --verbosity diagnostic` step between `dotnet restore` and `dotnet build` so PRs that violate .editorconfig formatting rules fail fast with clear diagnostic output. Stacked on #152 which provides the nullable warning fixes needed for the format check to pass. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1300b5f commit 837f6b4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222
cache-dependency-path: '**/*.csproj'
2323

2424
- run: dotnet restore
25+
- name: Check code formatting
26+
run: dotnet format --verify-no-changes --verbosity diagnostic
2527
- run: dotnet build -c Release --no-restore /p:Version=${{ env.SEMVER }}
2628
- run: dotnet test ./HdrHistogram.UnitTests/HdrHistogram.UnitTests.csproj --no-build -c Release
2729
- run: dotnet pack ./HdrHistogram/HdrHistogram.csproj -c Release --no-build --include-symbols --no-restore /p:Version=${{ env.SEMVER }}

0 commit comments

Comments
 (0)