Don't skip internal packages for linting

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2022-03-11 13:26:23 +02:00
parent 0c7eb93d62
commit 9be6cca6db

View File

@ -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)/...