chore: gofmt the tree, clear staticcheck, add a CI gofmt gate
Nine files had drifted from gofmt and nothing checked; nine staticcheck findings were live (three dead symbols, capitalization, a redundant Sprintf, two literal-to-conversion sites, a nil test context). Fix all of them and make CI fail on unformatted Go so this cannot re-drift.
This commit is contained in:
15 files changed
+56
-57
No files matched your search
@@ -46,10 +46,10 @@ func ghFixtureServer(body string) *httptest.Server {
|
||||
// while the numeric core is what comparison uses.
|
||||
func TestGitHubLatestStableParsesRealTags(t *testing.T) {
|
||||
cases := []struct {
|
||||
name string
|
||||
repo string
|
||||
body string
|
||||
wantMajMinPat [3]int
|
||||
name string
|
||||
repo string
|
||||
body string
|
||||
wantMajMinPat [3]int
|
||||
wantRawInReport string
|
||||
}{
|
||||
{"cloudflared CalVer", "cloudflare/cloudflared", cloudflaredLatestFixture, [3]int{2026, 6, 1}, "2026.6.1"},
|
||||
|
||||
Reference in new issue
Block a user