2019-06-20 16:36:40 -07:00
|
|
|
run:
|
|
|
|
deadline: 60m
|
|
|
|
skip-dirs:
|
|
|
|
- "internal"
|
|
|
|
|
|
|
|
linters:
|
|
|
|
enable-all: true
|
2022-10-05 13:21:14 +03: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 13:21:55 -07:00
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
dupl:
|
|
|
|
threshold: 200
|
2020-05-11 15:13:24 -07:00
|
|
|
nestif:
|
2021-05-21 20:47:28 +00:00
|
|
|
min-complexity: 26
|
2021-12-13 19:23:31 +00: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 17:37:23 +00:00
|
|
|
- wg
|
|
|
|
ignore-decls:
|
|
|
|
- n int
|
|
|
|
- i int
|
|
|
|
- r *os.File
|
|
|
|
- w *os.File
|
|
|
|
- to int64
|
|
|
|
- l *ldap.Conn
|
2022-10-20 19:39:20 +03:00
|
|
|
gci:
|
|
|
|
sections:
|
|
|
|
- standard
|
|
|
|
- default
|
|
|
|
- prefix(zotregistry.io/zot)
|
2022-03-21 17:37:23 +00:00
|
|
|
wsl:
|
|
|
|
allow-assign-and-anything: true
|
|
|
|
enforce-err-cuddling: true
|
|
|
|
nolintlint:
|
|
|
|
allow-unused: true
|
2021-12-13 19:23:31 +00:00
|
|
|
gomnd:
|
|
|
|
settings:
|
|
|
|
mnd:
|
|
|
|
checks: argument,case,condition,operation,return,assign
|
|
|
|
ignored-numbers: 10,64
|
|
|
|
gomoddirectives:
|
|
|
|
replace-allow-list:
|
|
|
|
- github.com/aquasecurity/fanal
|
|
|
|
- github.com/aquasecurity/trivy
|
|
|
|
- github.com/aquasecurity/trivy-db
|
|
|
|
- github.com/containers/image/v5
|
2022-01-06 18:26:35 +00:00
|
|
|
- github.com/opencontainers/image-spec
|
2022-02-12 01:06:57 +00:00
|
|
|
- github.com/open-policy-agent/opa
|
2022-01-19 17:57:10 +02:00
|
|
|
- github.com/vektah/gqlparser/v2
|
2022-03-02 21:20:35 +00:00
|
|
|
- go.opentelemetry.io/otel
|
|
|
|
- go.opentelemetry.io/otel/exporters/otlp
|
|
|
|
- go.opentelemetry.io/otel/metric
|
|
|
|
- go.opentelemetry.io/otel/sdk
|
2022-05-03 20:39:13 +00:00
|
|
|
- github.com/hashicorp/go-getter
|
2022-05-24 18:11:36 +00:00
|
|
|
- github.com/opencontainers/runc
|
2022-05-24 21:02:29 +00:00
|
|
|
- github.com/theupdateframework/go-tuf
|
2022-06-06 16:52:27 +00:00
|
|
|
- go.etcd.io/etcd/v3
|
|
|
|
- go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
|
|
|
|
- go.opentelemetry.io/otel/exporters/otlp/otlptrace
|
2022-08-13 03:53:23 +00:00
|
|
|
- go.opentelemetry.io/otel/trace
|
2022-07-15 11:10:51 +00:00
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude-rules:
|
|
|
|
- path: pkg/extensions/search/schema.resolvers.go
|
|
|
|
linters:
|
|
|
|
- lll
|
2022-08-13 03:53:23 +00:00
|
|
|
- varnamelen
|
2022-10-20 19:39:20 +03:00
|
|
|
- gci
|