From 9fee0396ec3881cea71f8e2032ac21d285c934f9 Mon Sep 17 00:00:00 2001 From: Scott Leggett Date: Fri, 19 Jan 2024 13:38:03 +0800 Subject: [PATCH] chore: add lint target to Makefile --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 64d11a6..2586864 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # local development targets .PHONY: test -test: mod-tidy generate +test: mod-tidy generate lint go test -v ./... .PHONY: mod-tidy @@ -17,6 +17,10 @@ build: GOVERSION=$$(go version) \ goreleaser build --clean --debug --single-target --snapshot +.PHONY: lint +lint: + golangci-lint run + .PHONY: fuzz fuzz: mod-tidy generate go test -fuzz='^Fuzz' -fuzztime=10s -v ./internal/server