Skip to content

Commit 882df61

Browse files
committed
chore: upgrade golangci version
1 parent db9945b commit 882df61

4 files changed

Lines changed: 7 additions & 8 deletions

File tree

.golangci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
run:
2-
go: '1.19'
3-
deadline: 210s
2+
go: '1.23'
43
timeout: 10m
5-
skip-dirs:
4+
5+
issues:
6+
exclude-dirs:
67
- mocks
78
- '.*_mock'
8-
skip-files:
9+
exclude-files:
910
- '.*_mock.go'
1011
- ".*\\.pb\\.go$"
1112

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
NAME = stream-cli
22

3-
GOLANGCI_VERSION = 1.55.2
3+
GOLANGCI_VERSION = 1.62.2
44
GOLANGCI = .bin/golangci/$(GOLANGCI_VERSION)/golangci-lint
55
$(GOLANGCI):
66
@curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(dir $(GOLANGCI)) v$(GOLANGCI_VERSION)

pkg/cmd/chat/channel/channel.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ func hideCmd() *cobra.Command {
551551
return err
552552
}
553553

554-
cmd.Printf("Successfully hid channel for " + userID + "\n")
554+
cmd.Printf("Successfully hid channel for %s\n", userID)
555555
return nil
556556
},
557557
}

test/helpers.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import (
66
"math/rand"
77
"os"
88
"testing"
9-
"time"
109

1110
stream "github.com/GetStream/stream-chat-go/v8"
1211
"github.com/spf13/cobra"
@@ -91,7 +90,6 @@ func DeleteMessage(id string) {
9190
}
9291

9392
func RandomString(n int) string {
94-
rand.Seed(time.Now().UnixNano())
9593
bytes := make([]byte, n)
9694
for i := 0; i < n; i++ {
9795
bytes[i] = byte(65 + rand.Intn(25)) // A=65 and Z = 65+25

0 commit comments

Comments
 (0)