From a8fa0f9847dc48e5b841cecf48bb001605dd8741 Mon Sep 17 00:00:00 2001 From: Angira Kekteeva Date: Mon, 4 Oct 2021 22:53:41 +0300 Subject: [PATCH] [#349] ci: Update linter Update golangci version, replace golint by revive Signed-off-by: Angira Kekteeva --- .github/workflows/go.yml | 2 +- .golangci.yml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c86f81f6..3c9eb3c3 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -55,5 +55,5 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v2 with: - version: v1.29 + version: v1.42.1 only-new-issues: true diff --git a/.golangci.yml b/.golangci.yml index 882a9ff8..8f35944a 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -9,6 +9,9 @@ run: # include test files or not, default is true tests: false + skip-files: + - (^|.*/)grpc/(.*) + # output configuration options output: # colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number" @@ -29,7 +32,7 @@ linters: enable: # mandatory linters - govet - - golint + - revive # some default golangci-lint linters - errcheck