From 5e292eb3edb5b6a2448e5d61dc88dec4f62ad891 Mon Sep 17 00:00:00 2001 From: Silke Hofstra Date: Fri, 1 Sep 2023 20:48:16 +0200 Subject: [PATCH] Update Make `check` target with golangci-lint --- Makefile | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 6dd3caf..b31d7b8 100644 --- a/Makefile +++ b/Makefile @@ -53,16 +53,7 @@ uninstall: $(RMDIR_IF_EMPTY) $(BINDIR) check: - $(GO) get -u golang.org/x/lint/golint - $(GO) get -u github.com/securego/gosec/cmd/gosec - $(GO) get -u honnef.co/go/tools/cmd/staticcheck - $(GO) get -u gitlab.com/opennota/check/cmd/aligncheck - $(GO) fmt -x ./... - $(GO) vet ./... - golint -set_exit_status `go list ./... | grep -v vendor` - gosec -exclude=G204 ./... - staticcheck ./... - aligncheck ./... + $(shell $(GO) env GOPATH)/bin/golangci-lint run $(GO) test -cover ./... vendor: check clean