diff --git a/.github/workflows/checks.yaml b/.github/workflows/checks.yaml index 64c2408b9..e6ad5aa23 100644 --- a/.github/workflows/checks.yaml +++ b/.github/workflows/checks.yaml @@ -58,9 +58,6 @@ jobs: with: version: v1.57.2 args: --timeout 10m0s --go ${{ env.golang-version }} - # Disable caching as a workaround for https://github.com/golangci/golangci-lint-action/issues/135. - # The line can be removed once the golangci-lint issue is resolved. - skip-pkg-cache: true check-metrics: runs-on: ubuntu-latest diff --git a/.golangci.yml b/.golangci.yml index 1ef4491f8..b8ebefe17 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -19,7 +19,11 @@ issues: linters-settings: errcheck: - exclude: scripts/errcheck_excludes.txt + exclude-functions: + # Any error in HTTP handlers is handled by the server itself. + - (net/http.ResponseWriter).Write + # Never check for logger errors. + - (github.com/go-kit/log.Logger).Log gci: sections: - standard diff --git a/scripts/errcheck_excludes.txt b/scripts/errcheck_excludes.txt deleted file mode 100644 index 4820bcb6a..000000000 --- a/scripts/errcheck_excludes.txt +++ /dev/null @@ -1,5 +0,0 @@ -// Any error in HTTP handlers is handled by the server itself. -(net/http.ResponseWriter).Write - -// Never check for logger errors. -(github.com/go-kit/log.Logger).Log