2023-08-25 14:09:58 +00:00
|
|
|
run:
|
|
|
|
deadline: 10m
|
|
|
|
|
|
|
|
linters:
|
|
|
|
enable:
|
|
|
|
- contextcheck
|
|
|
|
- gocritic
|
|
|
|
- gofmt
|
|
|
|
- goimports
|
|
|
|
- gosec
|
|
|
|
- gosimple
|
|
|
|
- govet
|
|
|
|
- ineffassign
|
|
|
|
- misspell
|
|
|
|
- staticcheck
|
|
|
|
- unconvert
|
2023-08-28 09:08:36 +00:00
|
|
|
|
2023-12-01 01:10:10 +00:00
|
|
|
linters-settings:
|
|
|
|
goimports:
|
|
|
|
local-prefixes: github.com/NVIDIA/nvidia-container-toolkit
|
|
|
|
|
2023-08-28 09:08:36 +00:00
|
|
|
issues:
|
|
|
|
exclude-rules:
|
|
|
|
# Exclude the gocritic dupSubExpr issue for cgo files.
|
|
|
|
- path: internal/dxcore/dxcore.go
|
|
|
|
linters:
|
|
|
|
- gocritic
|
|
|
|
text: dupSubExpr
|
2023-08-30 14:08:10 +00:00
|
|
|
# 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
|