mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 21:17:58 +08:00
100dfec142
Signed-off-by: Ramkumar Chinchani <rchincha.dev@gmail.com>
120 lines
2.2 KiB
YAML
120 lines
2.2 KiB
YAML
version: "2"
|
|
linters:
|
|
default: all
|
|
disable:
|
|
- contextcheck
|
|
- copyloopvar
|
|
- depguard
|
|
- exhaustive
|
|
- exhaustruct
|
|
- forbidigo
|
|
- funcorder
|
|
- funlen
|
|
- gocognit
|
|
- gosmopolitan
|
|
- iface
|
|
- inamedparam
|
|
- intrange
|
|
- ireturn
|
|
- maintidx
|
|
- mnd
|
|
- musttag
|
|
- paralleltest
|
|
- promlinter
|
|
- protogetter
|
|
- recvcheck
|
|
- revive
|
|
- rowserrcheck
|
|
- sqlclosecheck
|
|
- staticcheck
|
|
- usetesting
|
|
- wrapcheck
|
|
settings:
|
|
cyclop:
|
|
max-complexity: 40
|
|
dupl:
|
|
threshold: 200
|
|
gomoddirectives:
|
|
replace-allow-list:
|
|
- github.com/docker/docker
|
|
mnd:
|
|
checks:
|
|
- argument
|
|
- case
|
|
- condition
|
|
- operation
|
|
- return
|
|
- assign
|
|
ignored-numbers:
|
|
- "10"
|
|
- "64"
|
|
nestif:
|
|
min-complexity: 26
|
|
nolintlint:
|
|
allow-unused: true
|
|
varnamelen:
|
|
check-return: true
|
|
ignore-names:
|
|
- err
|
|
- ok
|
|
- gc
|
|
- wg
|
|
ignore-type-assert-ok: true
|
|
ignore-map-index-ok: true
|
|
ignore-chan-recv-ok: true
|
|
ignore-decls:
|
|
- n int
|
|
- i int
|
|
- r *os.File
|
|
- w *os.File
|
|
- to int64
|
|
- l *ldap.Conn
|
|
- w http.ResponseWriter
|
|
- r *http.Request
|
|
wsl:
|
|
allow-assign-and-anything: true
|
|
force-err-cuddling: true
|
|
exclusions:
|
|
generated: lax
|
|
presets:
|
|
- comments
|
|
- common-false-positives
|
|
- legacy
|
|
- std-error-handling
|
|
rules:
|
|
- linters:
|
|
- lll
|
|
- varnamelen
|
|
path: pkg/extensions/search/schema.resolvers.go
|
|
- linters:
|
|
- dupl
|
|
path: _test\.go
|
|
- linters:
|
|
- cyclop
|
|
path: (.+)_test\.go
|
|
paths:
|
|
- internal
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
formatters:
|
|
enable:
|
|
- gci
|
|
- gofmt
|
|
- gofumpt
|
|
- goimports
|
|
settings:
|
|
gci:
|
|
sections:
|
|
- standard
|
|
- default
|
|
- prefix(zotregistry.dev/zot)
|
|
exclusions:
|
|
generated: lax
|
|
paths:
|
|
- internal
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
- pkg/extensions/search/schema.resolvers.go
|