mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-28 06:52:34 +00:00
Add lint exclude for hooks.Prestart deprecation
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
2f11a190bf
commit
c084756e48
@ -20,6 +20,9 @@ linters-settings:
|
|||||||
local-prefixes: github.com/NVIDIA/nvidia-container-toolkit
|
local-prefixes: github.com/NVIDIA/nvidia-container-toolkit
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
|
exclude:
|
||||||
|
# The legacy hook relies on spec.Hooks.Prestart, which is deprecated as of the v1.2.0 OCI runtime spec.
|
||||||
|
- "SA1019:(.+).Prestart is deprecated(.+)"
|
||||||
exclude-rules:
|
exclude-rules:
|
||||||
# Exclude the gocritic dupSubExpr issue for cgo files.
|
# Exclude the gocritic dupSubExpr issue for cgo files.
|
||||||
- path: internal/dxcore/dxcore.go
|
- path: internal/dxcore/dxcore.go
|
||||||
|
Loading…
Reference in New Issue
Block a user