mirror of
https://github.com/git-pkgs/proxy.git
synced 2026-06-02 00:38:16 -04:00
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.
28 lines
430 B
YAML
28 lines
430 B
YAML
version: "2"
|
|
|
|
linters:
|
|
enable:
|
|
- gocritic
|
|
- gocognit
|
|
- gocyclo
|
|
- maintidx
|
|
- dupl
|
|
- mnd
|
|
- unparam
|
|
- ireturn
|
|
- goconst
|
|
- errcheck
|
|
settings:
|
|
goconst:
|
|
min-len: 4
|
|
min-occurrences: 5
|
|
ignore-tests: true
|
|
ignore-string-values:
|
|
- "^[a-z]+$"
|
|
exclusions:
|
|
rules:
|
|
- path: _test\.go
|
|
linters:
|
|
- goconst
|
|
- dupl
|
|
- mnd
|