From 033dd0229abe823b5ed7d4e9cc9a9e0b844d687f Mon Sep 17 00:00:00 2001 From: lauener Date: Fri, 16 Feb 2024 14:15:33 +0100 Subject: [PATCH] Add golangci-lint --- .github/workflows/go_lint.yml | 4 +++- Makefile | 5 +---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/go_lint.yml b/.github/workflows/go_lint.yml index d9d9d5128..721d00351 100644 --- a/.github/workflows/go_lint.yml +++ b/.github/workflows/go_lint.yml @@ -26,7 +26,9 @@ jobs: run: go mod tidy && [ -z "$(git status -s)" ] - name: Lint - run: make lint + run: | + go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.56.2 + make lint - name: Vet run: make vet diff --git a/Makefile b/Makefile index f5b2c46aa..5f81fb9ff 100644 --- a/Makefile +++ b/Makefile @@ -7,10 +7,7 @@ generate: tidy # Coding style static check. lint: tidy - @echo "Please setup a linter!" - #golangci-lint run - #staticcheck go list ./... - + golangci-lint run vet: tidy go vet ./...