2019-06-20 18:36:40 -05:00
|
|
|
run:
|
2024-07-29 12:32:51 -05:00
|
|
|
timeout: 60m
|
2019-06-20 18:36:40 -05:00
|
|
|
|
|
|
|
linters:
|
|
|
|
enable-all: true
|
2024-07-29 12:32:51 -05:00
|
|
|
disable:
|
|
|
|
- gomnd
|
|
|
|
- funlen
|
|
|
|
- gocognit
|
|
|
|
- paralleltest
|
|
|
|
- forbidigo
|
|
|
|
- ireturn
|
|
|
|
- wrapcheck
|
|
|
|
- exhaustive
|
|
|
|
- maintidx
|
|
|
|
- exhaustruct
|
|
|
|
- rowserrcheck
|
|
|
|
- sqlclosecheck
|
|
|
|
- revive
|
|
|
|
- musttag
|
|
|
|
- depguard
|
|
|
|
- execinquery
|
|
|
|
- inamedparam
|
|
|
|
- intrange
|
|
|
|
- promlinter
|
|
|
|
- protogetter
|
|
|
|
- contextcheck # needs to revisit: https://github.com/project-zot/zot/pull/2556
|
|
|
|
- copyloopvar # needs to revisit: https://github.com/project-zot/zot/pull/2556
|
2024-09-20 01:50:08 -05:00
|
|
|
- typecheck
|
2024-12-14 14:58:04 -05:00
|
|
|
- exportloopref
|
2020-03-25 15:21:55 -05:00
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
dupl:
|
|
|
|
threshold: 200
|
2020-05-11 17:13:24 -05:00
|
|
|
nestif:
|
2021-05-21 15:47:28 -05:00
|
|
|
min-complexity: 26
|
2021-12-13 14:23:31 -05:00
|
|
|
cyclop:
|
|
|
|
max-complexity: 40
|
|
|
|
skip-tests: true
|
|
|
|
varnamelen:
|
|
|
|
check-return: true
|
|
|
|
ignore-type-assert-ok: true
|
|
|
|
ignore-map-index-ok: true
|
|
|
|
ignore-chan-recv-ok: true
|
|
|
|
ignore-names:
|
|
|
|
- err
|
|
|
|
- ok
|
|
|
|
- gc
|
2022-03-21 12:37:23 -05:00
|
|
|
- wg
|
|
|
|
ignore-decls:
|
|
|
|
- n int
|
|
|
|
- i int
|
|
|
|
- r *os.File
|
|
|
|
- w *os.File
|
|
|
|
- to int64
|
|
|
|
- l *ldap.Conn
|
2023-02-27 14:25:47 -05:00
|
|
|
- w http.ResponseWriter
|
|
|
|
- r *http.Request
|
2022-10-20 11:39:20 -05:00
|
|
|
gci:
|
|
|
|
sections:
|
|
|
|
- standard
|
|
|
|
- default
|
2024-01-31 23:34:07 -05:00
|
|
|
- prefix(zotregistry.dev/zot)
|
2022-03-21 12:37:23 -05:00
|
|
|
wsl:
|
|
|
|
allow-assign-and-anything: true
|
2024-07-29 12:32:51 -05:00
|
|
|
force-err-cuddling: true
|
2022-03-21 12:37:23 -05:00
|
|
|
nolintlint:
|
|
|
|
allow-unused: true
|
2024-07-29 12:32:51 -05:00
|
|
|
mnd:
|
|
|
|
checks:
|
|
|
|
- argument
|
|
|
|
- case
|
|
|
|
- condition
|
|
|
|
- operation
|
|
|
|
- return
|
|
|
|
- assign
|
|
|
|
ignored-numbers:
|
|
|
|
- "10"
|
|
|
|
- "64"
|
2023-06-09 12:27:42 -05:00
|
|
|
gomoddirectives:
|
2023-12-12 05:44:28 -05:00
|
|
|
replace-allow-list:
|
|
|
|
- github.com/gorilla/mux
|
2024-03-26 13:33:25 -05:00
|
|
|
- github.com/testcontainers/testcontainers-go
|
2022-07-15 06:10:51 -05:00
|
|
|
issues:
|
2024-07-29 12:32:51 -05:00
|
|
|
exclude-dirs:
|
|
|
|
- "internal"
|
2022-07-15 06:10:51 -05:00
|
|
|
exclude-rules:
|
|
|
|
- path: pkg/extensions/search/schema.resolvers.go
|
|
|
|
linters:
|
|
|
|
- lll
|
2022-08-12 22:53:23 -05:00
|
|
|
- varnamelen
|
2022-10-20 11:39:20 -05:00
|
|
|
- gci
|
2024-07-29 12:32:51 -05:00
|
|
|
- path: _test\.go
|
|
|
|
linters:
|
|
|
|
- dupl
|