From f7c0eddc8f063464a659c2d157fb1acc2aedf02b Mon Sep 17 00:00:00 2001 From: Dzyanis Kuzmenka Date: Sat, 19 Mar 2022 00:31:23 +0300 Subject: [PATCH] add linter into makefile --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index ae1a013e..63d02fcc 100644 --- a/Makefile +++ b/Makefile @@ -42,3 +42,9 @@ alltest: gotest e2e clean: rm -f ./bin/frpc rm -f ./bin/frps + +linter: + ./bin/golangci-lint run ./... --timeout=5m + +linter-install: + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s