From df1aeccc29bfa1b76b4c9af3d5cec506358afe0c Mon Sep 17 00:00:00 2001 From: Jakub Jarosz Date: Thu, 29 Sep 2022 13:05:21 +0100 Subject: [PATCH] Add make target for running staticcheck locally --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index a81a910e8c..eb5112cdc4 100644 --- a/Makefile +++ b/Makefile @@ -39,6 +39,11 @@ lint-python: ## Run linter for python tests @isort . @black . +.PHONY: staticcheck +staticcheck: ## Run staticcheck linter + @staticcheck -version >/dev/null 2>&1 || go install honnef.co/go/tools/cmd/staticcheck@2022.1.3; + staticcheck ./... + .PHONY: test test: ## Run tests go test -tags=aws -shuffle=on -race ./...