Skip to content

Commit

Permalink
update golangci-lint configuration (#124)
Browse files Browse the repository at this point in the history
This add explicit exemption for things we don't care about in errcheck
lint message.
  • Loading branch information
sywhang authored Jun 5, 2024
1 parent 517bace commit 7f1444f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ linters-settings:
- reflectvaluecompare
- sortslice
- unusedwrite
errcheck:
exclude-functions:
- fmt.Fprintf

issues:
# Print all issues reported by all linters.
Expand Down

0 comments on commit 7f1444f

Please sign in to comment.