From 6a62797b1aa9b313c4c9fd0d41a00c83064c5bdf Mon Sep 17 00:00:00 2001 From: Shulhan Date: Tue, 31 Jan 2023 17:37:07 +0700 Subject: make: split the lint task and add golangci-lint as one of the linter --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4869220..edbed29 100644 --- a/Makefile +++ b/Makefile @@ -6,10 +6,13 @@ COVER_HTML=cover.html .PHONY: all test -all: test +all: test lint test: CGO_ENABLED=1 go test -race -coverprofile=$(COVER_OUT) ./... go tool cover -html=$(COVER_OUT) -o $(COVER_HTML) go tool cover -func=$(COVER_OUT) | tail -n1 + +lint: + golangci-lint run ./... fieldalignment ./... -- cgit v1.3