forgejo-mcp/operation/resource
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
..
bound.go feat: ✨ MCP resource templates — slices 1+2 (core framework + commit) 2026-05-28 14:31:55 +02:00
bound_test.go feat: ✨ MCP resource templates — slices 1+2 (core framework + commit) 2026-05-28 14:31:55 +02:00
doc.go feat: ✨ MCP resource templates — slices 1+2 (core framework + commit) 2026-05-28 14:31:55 +02:00
errors.go refactor: 🏗️ classify parse errors via sentinel ErrInvalidParams (-32602) 2026-05-28 16:08:59 +02:00
errors_test.go refactor: 🏗️ classify parse errors via sentinel ErrInvalidParams (-32602) 2026-05-28 16:08:59 +02:00
excerpt.go fix: 🐛 bug-hunt sweep — 9 issues across tool handlers and resources 2026-06-10 23:54:24 +02:00
excerpt_test.go fix: 🐛 bug-hunt sweep — 9 issues across tool handlers and resources 2026-06-10 23:54:24 +02:00
parse.go fix: 🚨 clear golangci-lint v2 backlog (closes bead forgejo-mcp-hc9) 2026-06-11 00:03:36 +02:00
parse_branchprotection_test.go feat: ✨ branch protection management — CRUD tools + forgejo:// resources (uc6) 2026-06-02 16:22:24 +02:00
parse_test.go refactor: 🏗️ classify parse errors via sentinel ErrInvalidParams (-32602) 2026-05-28 16:08:59 +02:00
register.go feat: ✨ MCP resource templates — slices 1+2 (core framework + commit) 2026-05-28 14:31:55 +02:00