forgejo-mcp/pkg/forgejo
Christoph Görn dd9116fbca
fix: 🚨 clear golangci-lint v2 backlog (closes bead forgejo-mcp-hc9)
- errorlint: fmt.Errorf %v→%w across all handlers (errors now wrap the
  underlying SDK/HTTP error for errors.Is/As); errors.Is for
  context.Canceled in cmd
- staticcheck quickfixes: Fprintf over WriteString(Sprintf), tagged
  switches, omit inferred 'any'; QF1001 resolved by hoisting hex checks
  into isHex predicates (normalizeColor, validateSHA)
- govet: reflect.Ptr → reflect.Pointer in pkg/ptr
- errcheck: explicit '_ =' for fs.Parse (ExitOnError) and deferred
  zap Sync
- repair four test assertions the autofix broke (it dropped the
  're.Code != X' half of combined type-assert checks, inverting the
  test); all errors.As sites use 'var re *resource.ResourceError'

golangci-lint: 0 issues. staticcheck, vet, tests: clean.
2026-06-11 00:03:36 +02:00
..
forgejo.go fix: 🚨 clear golangci-lint v2 backlog (closes bead forgejo-mcp-hc9) 2026-06-11 00:03:36 +02:00
forgejo_test.go fix: 🔒️ reject bare tokens in stateless HTTP auth 2026-06-01 23:41:10 +02:00
rawhttp.go fix: 🚨 clear golangci-lint v2 backlog (closes bead forgejo-mcp-hc9) 2026-06-11 00:03:36 +02:00
rawhttp_test.go style: 🎨 apply gofmt -w to operation/* and pkg/* 2026-05-24 09:24:48 +02:00
testing.go deps: ⬆️ migrate forgejo-sdk from v2 to v3 2026-03-27 23:53:31 +01:00