From 91813c5e5de61119d5c135e30ec4fffd55b10579 Mon Sep 17 00:00:00 2001 From: Antanas Bastys Date: Wed, 18 Nov 2020 17:28:05 +0200 Subject: [PATCH] [linter] more optimal linter invocation for "all" case (#2863) --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 829c2a203b..eed0a7076f 100644 --- a/Makefile +++ b/Makefile @@ -257,7 +257,7 @@ SUBDIR_TARGETS := \ genny-gen \ license-gen \ all-gen \ - lint + all-gen .PHONY: test-ci-unit test-ci-unit: test-base @@ -478,3 +478,8 @@ clean: clean-build @rm -rf ./src/ctl/ui/build .DEFAULT_GOAL := all + +lint: install-tools linter + @echo "--- :golang: Running linter on 'src'" + ./scripts/run-ci-lint.sh $(tools_bin_path)/golangci-lint ./src/... + ./bin/linter ./src/...