mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-25 21:39:10 +00:00
Don't skip internal packages for linting
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
0c7eb93d62
commit
9be6cca6db
6
Makefile
6
Makefile
@ -90,11 +90,7 @@ ineffassign:
|
|||||||
|
|
||||||
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)/... | grep -v /internal/ | xargs golint -set_exit_status
|
go list -f '{{.Dir}}' $(MODULE)/... | xargs golint -set_exit_status
|
||||||
|
|
||||||
lint-internal:
|
|
||||||
# We use `go list -f '{{.Dir}}' $(MODULE)/...` to skip the `vendor` folder.
|
|
||||||
go list -f '{{.Dir}}' $(MODULE)/internal/... | xargs golint -set_exit_status
|
|
||||||
|
|
||||||
misspell:
|
misspell:
|
||||||
misspell $(MODULE)/...
|
misspell $(MODULE)/...
|
||||||
|
Loading…
Reference in New Issue
Block a user