aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index c033f6f..2f9e3b0 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,15 @@
## SPDX-License-Identifier: GPL-3.0-or-later
.PHONY: all
-all: test lint install
+all: lint test install
+
+
+.PHONY: lint
+lint:
+ -fieldalignment ./...
+ -shadow ./...
+ -go vet ./...
+ -reuse lint
COVER_TXT:=cover.txt
@@ -15,11 +23,6 @@ test:
go tool cover -html=$(COVER_TXT) -o $(COVER_HTML)
-.PHONY: lint
-lint:
- -golangci-lint run ./...
- -reuse lint --quiet
-
.PHONY: install
install:
go install ./cmd/kbbi