From 697ca065cd100bd4fd424e8cfe4c1bddada26bc5 Mon Sep 17 00:00:00 2001 From: Patrik Lundin Date: Mon, 27 May 2024 17:05:14 +0200 Subject: [PATCH] Add basic "lint" Makefile target --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile b/Makefile index 9ba9a73..f148a3b 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,13 @@ build: version.go # ../tapir/tapir.pb.go # ../tapir/tapir.pb.go: ../tapir/tapir.proto # make -C ../tapir tapir.pb.go +lint: + go fmt ./... + go vet ./... + staticcheck ./... + gosec ./... + golangci-lint run + linux: /bin/sh make-version.sh $(VERSION)-$(COMMIT) $(APPDATE) $(PROG) GOOS=linux GOARCH=amd64 go build $(GOFLAGS) -o ${PROG}.linux