1
0
Fork 1
mirror of https://github.com/git-pkgs/proxy.git synced 2026-06-02 08:38:17 -04:00
pkg-proxy/internal/server
Andrew Nesbitt 5e88758852
Add .golangci.yml and clear gocognit/goconst findings
Bake the extended linter set into a project config so plain
golangci-lint run matches what we check locally, with goconst tuned
to ignore tests and bare lowercase words to drop ~200 ecosystem-name
and test-literal false positives.

Clear the remaining real findings: extract GradleBuildCacheConfig.Validate
from Config.Validate, pull the eviction sort comparator into
sortOldestFirst (zero time.Time already sorts first via Before so the
switch was redundant), add headerAcceptEncoding and SQL column-type
constants, and drop a dead empty-key recheck in the gradle handler.
2026-05-04 11:33:35 +01: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 Structured JSON error responses for API endpoints (#110) 2026-05-03 09:42:03 +01:00
api_test.go Validate package paths before database lookups (#109) 2026-05-03 09:14:18 +01:00
browse.go Structured JSON error responses for API endpoints (#110) 2026-05-03 09:42:03 +01:00
browse_bench_test.go Use archives.OpenBytes in browse handler to cut buffer copies (#107) 2026-05-03 09:29:42 +01:00
browse_test.go Use archives.OpenBytes in browse handler to cut buffer copies (#107) 2026-05-03 09:29:42 +01:00
dashboard.go add Gradle Build Cache support with handler and tests (#87) 2026-05-04 11:15:16 +01:00
errors.go Structured JSON error responses for API endpoints (#110) 2026-05-03 09:42:03 +01:00
errors_test.go Structured JSON error responses for API endpoints (#110) 2026-05-03 09:42:03 +01:00
eviction.go Enforce max_size config with LRU cache eviction 2026-04-30 18:09:01 +01:00
eviction_test.go Enforce max_size config with LRU cache eviction 2026-04-30 18:09:01 +01:00
gradle_cache_eviction.go Add .golangci.yml and clear gocognit/goconst findings 2026-05-04 11:33:35 +01:00
gradle_cache_eviction_test.go add Gradle Build Cache support with handler and tests (#87) 2026-05-04 11:15:16 +01: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
mirror_api.go Structured JSON error responses for API endpoints (#110) 2026-05-03 09:42:03 +01:00
mirror_api_test.go Add MaxBytesReader to mirror API HandleCreate (#105) 2026-05-02 18:00:25 +01:00
packages_list_test.go Fix all golangci-lint issues across the codebase (#32) 2026-03-18 10:59:29 +00:00
resolve.go Validate package paths before database lookups (#109) 2026-05-03 09:14:18 +01:00
resolve_test.go Validate package paths before database lookups (#109) 2026-05-03 09:14:18 +01:00
server.go add Gradle Build Cache support with handler and tests (#87) 2026-05-04 11:15:16 +01:00
server_test.go add Gradle Build Cache support with handler and tests (#87) 2026-05-04 11:15:16 +01: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 Lazy-load HTML templates behind sync.Once (#59) 2026-04-06 13:06:25 +01:00
templates_test.go add Gradle Build Cache support with handler and tests (#87) 2026-05-04 11:15:16 +01:00