0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00
zot/golangcilint.yaml

44 lines
1 KiB
YAML
Raw Normal View History

2019-06-20 18:36:40 -05:00
run:
deadline: 60m
skip-dirs:
- "internal"
linters:
enable-all: true
disable: funlen,gocognit,exhaustivestruct,paralleltest,forbidigo,ireturn,wrapcheck,exhaustive
2020-03-25 15:21:55 -05:00
linters-settings:
dupl:
threshold: 200
nestif:
2021-05-21 15:47:28 -05:00
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
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