From 7f1444f092632a980d3d21b5e7a8cddcd3197f83 Mon Sep 17 00:00:00 2001 From: Sung Yoon Whang Date: Wed, 5 Jun 2024 12:52:12 -0700 Subject: [PATCH] update golangci-lint configuration (#124) This add explicit exemption for things we don't care about in errcheck lint message. --- .github/workflows/ci.yml | 2 +- .golangci.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f24093c..69047b9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,7 +47,7 @@ jobs: go-version: 1.22.x cache: false # managed by golangci-lint - - uses: golangci/golangci-lint-action@v3 + - uses: golangci/golangci-lint-action@v6 name: Install golangci-lint with: version: latest diff --git a/.golangci.yml b/.golangci.yml index f84e6da..e92cce6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -17,6 +17,9 @@ linters-settings: - reflectvaluecompare - sortslice - unusedwrite + errcheck: + exclude-functions: + - fmt.Fprintf issues: # Print all issues reported by all linters.