From 7b045059948867ac171ccd5268516319a1f072f7 Mon Sep 17 00:00:00 2001 From: Valentin Rodygin Date: Fri, 14 Apr 2023 16:55:34 +0200 Subject: [PATCH] [chore] Remove deprecated linters (#2039) * [chore] Remove deprecated linters Linters varcheck and deadcode were deprecated since v1.49.0 because the owners have abandoned them. Both are replaced with unused, see details here https://github.com/golangci/golangci-lint/issues/1841 --- .github/workflows/config.yml | 1 + .golangci.yml | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml index b0cd0b34b9..bad29c5abd 100644 --- a/.github/workflows/config.yml +++ b/.github/workflows/config.yml @@ -178,6 +178,7 @@ jobs: message-id: test-summary # TODO: figure out if we need a token - name: Upload coverage to codecov + if: always() uses: codecov/codecov-action@v3 race: diff --git a/.golangci.yml b/.golangci.yml index 79a424fd73..b0347c3e1d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -12,7 +12,6 @@ run: linters: disable-all: true enable: - - deadcode - goconst - goimports - gosimple @@ -21,8 +20,7 @@ linters: - misspell # - staticcheck - unconvert - # - unused - - varcheck + - unused # - gosec # - errcheck