diff options
| author | Shulhan <ms@kilabit.info> | 2023-01-31 17:37:07 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-01-31 17:37:07 +0700 |
| commit | 6a62797b1aa9b313c4c9fd0d41a00c83064c5bdf (patch) | |
| tree | fbde65bc0b6a5b17f9eacf03bd62fa66d4077946 | |
| parent | e59291fc07605b35e07174803a12b45365cd8fe8 (diff) | |
| download | duitku-6a62797b1aa9b313c4c9fd0d41a00c83064c5bdf.tar.xz | |
make: split the lint task and add golangci-lint as one of the linter
| -rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 ./... |
