Merge pull request #391 from elezar/add-lint-excludes-for-prestart

Add lint exclude for hooks.Prestart deprecation
This commit is contained in:
Evan Lezar
2024-03-01 22:20:54 +02:00
committed by GitHub

View File

@@ -20,6 +20,9 @@ linters-settings:
local-prefixes: github.com/NVIDIA/nvidia-container-toolkit
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 the gocritic dupSubExpr issue for cgo files.
- path: internal/dxcore/dxcore.go