Skip to content

Commit e16898d

Browse files
committed
Enforce gofumpt formatter checks in lint workflow
Address review feedback by enforcing formatter checks via golangci-lint fmt --diff in both Makefile lint target and CI lint job. --- _Generated with [`mux`](https://github.com/coder/mux) • Model: `openai:gpt-5.3-codex` • Thinking: `xhigh`_
1 parent 63ada98 commit e16898d

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
version: v2.8
3737
args: --timeout=5m ./...
3838

39+
- name: Run golangci-lint formatter checks
40+
run: go run github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.8.0 fmt --diff
41+
3942
- name: Run govulncheck
4043
uses: golang/govulncheck-action@b625fbe08f3bccbe446d94fbf87fcc875a4f50ee # v1
4144
with:

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ build: $(VENDOR_STAMP)
2121
lint: $(VENDOR_STAMP)
2222
@command -v golangci-lint >/dev/null || (echo "golangci-lint not found; use nix develop" && exit 1)
2323
GOFLAGS=$(GOFLAGS) golangci-lint run ./...
24+
GOFLAGS=$(GOFLAGS) golangci-lint fmt --diff
2425

2526
vuln: $(VENDOR_STAMP)
2627
@command -v govulncheck >/dev/null || (echo "govulncheck not found; use nix develop" && exit 1)

0 commit comments

Comments
 (0)