Skip pkg/nvml folder when linting

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2022-11-16 10:01:51 +01:00
parent e37e145458
commit 4a0fdc2e8a

View File

@ -59,7 +59,7 @@ generate:
lint: lint:
# We use `go list -f '{{.Dir}}' $(MODULE)/...` to skip the `vendor` folder. # We use `go list -f '{{.Dir}}' $(MODULE)/...` to skip the `vendor` folder.
go list -f '{{.Dir}}' $(MODULE)/... | xargs golint -set_exit_status go list -f '{{.Dir}}' $(MODULE)/... | grep -v pkg/nvml | xargs golint -set_exit_status
vet: vet:
go vet $(MODULE)/... go vet $(MODULE)/...