Skip to content

ci: add gofmt check#199

Merged
zedkipp merged 2 commits intomainfrom
zedkipp/ci-go-fmt
Apr 23, 2026
Merged

ci: add gofmt check#199
zedkipp merged 2 commits intomainfrom
zedkipp/ci-go-fmt

Conversation

@zedkipp
Copy link
Copy Markdown
Contributor

@zedkipp zedkipp commented Apr 22, 2026

Adds a formatting check to CI that fails when any Go file is not gofmt-clean.

Nothing in CI catches unformatted Go today: .github/workflows/lint.yml installs golangci-lint but never runs it. This change adds a fmt job to the same workflow that runs make fmt and uses the existing scripts/check_unstaged.sh to fail on any diff. types/diagnostics_test.go was already not gofmt-clean on main; that reformat is included as a separate commit.

Generated with Coder Agents.

@zedkipp zedkipp force-pushed the zedkipp/ci-go-fmt branch from ae10665 to 1d162cd Compare April 22, 2026 17:42
@zedkipp zedkipp changed the title ci(.github/workflows): add gofmt check ci: add gofmt check Apr 22, 2026
zedkipp added 2 commits April 23, 2026 14:59
Adds a `make fmt` target that runs `gofmt -w .` and a matching
`fmt` job in the existing Lint workflow. The job runs `make fmt` and
fails via the existing `scripts/check_unstaged.sh` when any Go file
is not formatted.

Generated with Coder Agents.
Result of running the newly added `make fmt` against the tree.

Generated with Coder Agents.
@zedkipp zedkipp force-pushed the zedkipp/ci-go-fmt branch from 1d162cd to 0a80385 Compare April 23, 2026 21:00
@zedkipp zedkipp marked this pull request as ready for review April 23, 2026 21:03
Copy link
Copy Markdown
Contributor

@dylanhuff-at-coder dylanhuff-at-coder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making this fix!

@zedkipp zedkipp merged commit 2e2de42 into main Apr 23, 2026
4 checks passed
@zedkipp zedkipp deleted the zedkipp/ci-go-fmt branch April 23, 2026 21:17
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.

2 participants