mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 16:29:18 +00:00
7627d48a5c
Signed-off-by: Tariq Ibrahim <tibrahim@nvidia.com> Signed-off-by: Evan Lezar <elezar@nvidia.com>
34 lines
664 B
YAML
34 lines
664 B
YAML
run:
|
|
deadline: 10m
|
|
|
|
linters:
|
|
enable:
|
|
- contextcheck
|
|
- gocritic
|
|
- gofmt
|
|
- goimports
|
|
- gosec
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- misspell
|
|
- staticcheck
|
|
- unconvert
|
|
|
|
linters-settings:
|
|
goimports:
|
|
local-prefixes: github.com/NVIDIA/nvidia-container-toolkit
|
|
|
|
issues:
|
|
exclude-rules:
|
|
# Exclude the gocritic dupSubExpr issue for cgo files.
|
|
- path: internal/dxcore/dxcore.go
|
|
linters:
|
|
- gocritic
|
|
text: dupSubExpr
|
|
# Exclude the checks for usage of returns to config.Delete(Path) in the crio and containerd config packages.
|
|
- path: pkg/config/engine/
|
|
linters:
|
|
- errcheck
|
|
text: config.Delete
|