From da2e7029c7f0aa5f933ffb4a54eb4b427424a46d Mon Sep 17 00:00:00 2001 From: naveen <172697+naveensrinivasan@users.noreply.github.com> Date: Tue, 27 Apr 2021 21:00:50 +0000 Subject: [PATCH] :seedling: Update golangci version to 1.39 * Upgrade the golangci version to 1.39 * Changed the checkout depth https://github.com/golangci/golangci-lint/issues/1088#issuecomment-801540792 --- .github/workflows/main.yml | 4 +++- .golangci.yml | 3 ++- Makefile | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d717650c..2007805e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,6 +23,8 @@ jobs: steps: - name: Clone the code uses: actions/checkout@v2 + with: + fetch-depth: 0 - name: Setup Go uses: actions/setup-go@v2 with: @@ -46,4 +48,4 @@ jobs: run: | set -e addlicense -l apache -c 'Security Scorecard Authors' -v * - git diff --exit-code \ No newline at end of file + git diff --exit-code diff --git a/.golangci.yml b/.golangci.yml index e24b62dc..0806e31c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -2,6 +2,8 @@ run: concurrency: 6 deadline: 5m +issues: + new-from-rev: "" linters: disable-all: true enable: @@ -44,7 +46,6 @@ linters: - prealloc - predeclared - rowserrcheck - - scopelint - sqlclosecheck - staticcheck - structcheck diff --git a/Makefile b/Makefile index bec7033e..8f9811e0 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ GOLANGCI_LINT = $(shell pwd)/bin/golangci-lint golangci-lint: rm -f $(GOLANGCI_LINT) || : set -e ;\ - curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell dirname $(GOLANGCI_LINT)) v1.36.0 ;\ + curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell dirname $(GOLANGCI_LINT)) v1.39.0 ;\ lint: golangci-lint ## Runs golangci-lint linter $(GOLANGCI_LINT) run -n