pkg-proxy/internal/server
Andrew Nesbitt 599fe9e254
Fix all golangci-lint issues across the codebase (#32)
* Fix all golangci-lint issues across the codebase

Resolve 77 lint issues reported by golangci-lint with gocritic, gocognit,
gocyclo, maintidx, dupl, mnd, unparam, ireturn, goconst, and errcheck
enabled. Net reduction of ~175 lines through shared helpers and
deduplication.

* Suppress staticcheck SA1019 for intentional deprecated field usage

The Storage.Path field is deprecated but still read for backwards
compatibility with existing configs that haven't migrated to the URL field.
2026-03-18 10:59:29 +00:00
..
static Add Container, Debian, RPM handlers and enrichment API 2026-01-29 19:35:15 +00:00
templates Escape user-controlled strings in browse source JavaScript 2026-03-12 11:59:14 +00:00
api.go Fix all golangci-lint issues across the codebase (#32) 2026-03-18 10:59:29 +00:00
api_test.go Fix all golangci-lint issues across the codebase (#32) 2026-03-18 10:59:29 +00:00
browse.go Fix all golangci-lint issues across the codebase (#32) 2026-03-18 10:59:29 +00:00
browse_test.go Fix all golangci-lint issues across the codebase (#32) 2026-03-18 10:59:29 +00:00
dashboard.go Remove hard-coded ecosystems from templates 2026-03-11 17:25:47 +00:00
middleware.go Refactoring and features 2026-02-03 22:40:40 +00:00
middleware_test.go Add handler download flow and server utility tests 2026-03-17 20:31:54 +00:00
packages_list_test.go Fix all golangci-lint issues across the codebase (#32) 2026-03-18 10:59:29 +00:00
server.go Fix all golangci-lint issues across the codebase (#32) 2026-03-18 10:59:29 +00:00
server_test.go Fix all golangci-lint issues across the codebase (#32) 2026-03-18 10:59:29 +00:00
static.go Add Container, Debian, RPM handlers and enrichment API 2026-01-29 19:35:15 +00:00
swagger_gen.go Add generated OpenAPI docs support 2026-03-12 11:49:31 +00:00
templates.go Remove hard-coded ecosystems from templates 2026-03-11 17:25:47 +00:00
templates_test.go Fix all golangci-lint issues across the codebase (#32) 2026-03-18 10:59:29 +00:00