2019-06-20 18:36:40 -05:00
|
|
|
run:
|
|
|
|
deadline: 60m
|
|
|
|
skip-dirs:
|
|
|
|
- "internal"
|
|
|
|
|
|
|
|
linters:
|
|
|
|
enable-all: true
|
2022-10-05 05:21:14 -05:00
|
|
|
disable: funlen,gocognit,exhaustivestruct,paralleltest,forbidigo,ireturn,wrapcheck,exhaustive,maintidx,exhaustruct,nosnakecase,interfacer,structcheck,varcheck,deadcode,ifshort,golint,scopelint,maligned,rowserrcheck,sqlclosecheck
|
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
|
|
|
|
- prefix(zotregistry.io/zot)
|
2022-03-21 12:37:23 -05:00
|
|
|
wsl:
|
|
|
|
allow-assign-and-anything: true
|
|
|
|
enforce-err-cuddling: true
|
|
|
|
nolintlint:
|
|
|
|
allow-unused: true
|
2021-12-13 14:23:31 -05:00
|
|
|
gomnd:
|
|
|
|
settings:
|
|
|
|
mnd:
|
|
|
|
checks: argument,case,condition,operation,return,assign
|
|
|
|
ignored-numbers: 10,64
|
2023-01-27 01:39:18 -05:00
|
|
|
gomoddirectives:
|
|
|
|
replace-allow-list:
|
|
|
|
- helm.sh/helm/v3
|
2023-03-06 00:11:07 -05:00
|
|
|
- github.com/opencontainers/umoci
|
2022-07-15 06:10:51 -05:00
|
|
|
issues:
|
|
|
|
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
|