Skip to content

Commit

Permalink
chore: Upgrade golangci-lint to 1.61.0 (#1887)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear authored Oct 22, 2024
1 parent d795f13 commit 56fd74b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ jobs:
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.56.2
version: v1.61.0
args: --verbose
6 changes: 6 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ linters:
enable-all: true
disable:
- cyclop
- copyloopvar
- depguard
- dupl
- err113
- errname
- errorlint
- exhaustive
Expand All @@ -25,8 +27,10 @@ linters:
- gomnd
- gosec
- inamedparam
- intrange
- ireturn
- maintidx
- mnd
- nakedret
- nestif
- nlreturn
Expand All @@ -46,6 +50,8 @@ linters:
# Deprecated linters
- deadcode
- exhaustivestruct
- exportloopref
- execinquery
- golint
- ifshort
- interfacer
Expand Down
4 changes: 2 additions & 2 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3502,7 +3502,7 @@ func TestRevertPull1233(t *testing.T) {
conn, err := ln.Accept()
if err != nil {
if !strings.Contains(err.Error(), "closed") {
t.Errorf(err.Error())
t.Error(err)
}
return
}
Expand All @@ -3512,7 +3512,7 @@ func TestRevertPull1233(t *testing.T) {
}
err = conn.(*net.TCPConn).SetLinger(0)
if err != nil {
t.Errorf(err.Error())
t.Error(err)
}
conn.Close()
}
Expand Down

0 comments on commit 56fd74b

Please sign in to comment.