Skip to content

Enforce formatting and lint checks in CI - #6

Merged
halqme merged 4 commits into
mainfrom
ci/enforce-format-and-lint
Jul 10, 2026
Merged

Enforce formatting and lint checks in CI#6
halqme merged 4 commits into
mainfrom
ci/enforce-format-and-lint

Conversation

@halqme

@halqme halqme commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Summary

Make formatting a first-class verification step locally and in GitHub Actions.

  • add just fmt-check
  • include formatting in just check
  • fail CI when gofmt -l . reports files
  • keep go vet ./... as the lint gate
  • keep go test ./... as the test gate

Why no auto-commit

CI should verify the source tree rather than mutate a PR branch. Auto-committing formatter output makes CI a code author, complicates commit history, and is awkward for forked PRs and branch protection. Developers can run just fmt; CI then verifies that the result was committed.

@halqme
halqme merged commit 5e951c4 into main Jul 10, 2026
1 check passed
@halqme
halqme deleted the ci/enforce-format-and-lint branch July 12, 2026 00:22
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.

1 participant