Commit 2e2de42
authored
ci: add gofmt check (#199)
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.
Generated with Coder Agents.1 parent 5e77ead commit 2e2de42
3 files changed
Lines changed: 20 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments