From 38f8d9296d48bc1e04c49eae92b33fb9179797fa Mon Sep 17 00:00:00 2001 From: Max Gallup <71069158+maxgallup@users.noreply.github.com> Date: Thu, 25 Jul 2024 10:05:34 +0200 Subject: [PATCH] chore: added local lint target --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 114b55d..9f83ca6 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,11 @@ BUILD_DIR=bin/ BINARY_NAME=ChangeThisToRepoName -build: +lint: + @echo "Lint check..." + golangci-lint run + +build: lint @echo "building ${BINARY_NAME}" @cd src/ && go build -o "../$(BUILD_DIR)${BINARY_NAME}" ${buildargs} @@ -22,5 +26,5 @@ clean: @echo "Cleaning all targets for ${BINARY_NAME}" rm -rf $(BUILD_DIR) -test: +test: lint go test ./src -v -count=1 -timeout 0