2019-06-20 18:36:40 -05:00
|
|
|
run:
|
|
|
|
deadline: 60m
|
|
|
|
skip-dirs:
|
|
|
|
- "internal"
|
|
|
|
|
|
|
|
linters:
|
|
|
|
enable-all: true
|
2022-05-18 15:19:39 -05:00
|
|
|
disable: funlen,gocognit,exhaustivestruct,paralleltest,forbidigo,ireturn,wrapcheck,exhaustive,maintidx,exhaustruct
|
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
|
|
|
|
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
|
|
|
|
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 13:26:35 -05:00
|
|
|
- github.com/opencontainers/image-spec
|
2022-02-11 20:06:57 -05:00
|
|
|
- github.com/open-policy-agent/opa
|
2022-01-19 10:57:10 -05:00
|
|
|
- github.com/vektah/gqlparser/v2
|
2022-03-02 16:20:35 -05:00
|
|
|
- go.opentelemetry.io/otel
|
|
|
|
- go.opentelemetry.io/otel/exporters/otlp
|
|
|
|
- go.opentelemetry.io/otel/metric
|
|
|
|
- go.opentelemetry.io/otel/sdk
|
2022-05-03 15:39:13 -05:00
|
|
|
- github.com/hashicorp/go-getter
|
2022-05-24 13:11:36 -05:00
|
|
|
- github.com/opencontainers/runc
|
2022-05-24 16:02:29 -05:00
|
|
|
- github.com/theupdateframework/go-tuf
|
2022-06-06 11:52:27 -05: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-12 22:53:23 -05:00
|
|
|
- go.opentelemetry.io/otel/trace
|
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
|