forked from project-zot/zot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
golangcilint.yaml
62 lines (60 loc) · 1.58 KB
/
golangcilint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
run:
deadline: 60m
skip-dirs:
- "internal"
linters:
enable-all: true
disable: funlen,gocognit,exhaustivestruct,paralleltest,forbidigo,ireturn,wrapcheck,exhaustive,maintidx,exhaustruct
linters-settings:
dupl:
threshold: 200
nestif:
min-complexity: 26
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
- 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
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
- github.com/opencontainers/image-spec
- github.com/open-policy-agent/opa
- go.opentelemetry.io/otel
- go.opentelemetry.io/otel/exporters/otlp
- go.opentelemetry.io/otel/metric
- go.opentelemetry.io/otel/sdk
- github.com/hashicorp/go-getter
- github.com/opencontainers/runc
- github.com/theupdateframework/go-tuf
- go.etcd.io/etcd/v3
- go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc
- go.opentelemetry.io/otel/exporters/otlp/otlptrace