Skip to content

Commit 132ae88

Browse files
committed
chore: make lint happy
1 parent 8ae591d commit 132ae88

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

.golangci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
linters-settings:
22
errcheck:
3-
ignore: fmt:.*
43
ignoretests: true
54

65
goimports:
@@ -21,7 +20,7 @@ linters:
2120
#- depguard
2221
- dogsled
2322
- errcheck
24-
- copyloopvar
23+
#- exportloopref
2524
- exhaustive
2625
#- funlen
2726
#- goconst
@@ -57,13 +56,12 @@ run:
5756
deadline: 5m
5857
issues-exit-code: 1
5958
tests: false
60-
skip-dirs:
61-
- order
6259
go: '1.20'
6360

6461
# output configuration options
6562
output:
66-
format: "colored-line-number"
63+
formats:
64+
- format: "colored-line-number"
6765
print-issued-lines: true
6866
print-linter-name: true
6967
uniq-by-line: true
@@ -74,4 +72,4 @@ issues:
7472
exclude-use-default: false
7573
exclude:
7674
- "Error return value of .((os.)?std(out|err)..*|.*Close|.*Seek|.*Flush|os.Remove(All)?|.*print(f|ln)?|os.(Un)?Setenv). is not check"
77-
- 'identifier ".*" contain non-ASCII character: U\+.*'
75+
- 'identifier ".*" contain non-ASCII character: U\+.*'

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ require (
1515
github.com/pkg/errors v0.9.1
1616
github.com/pkumza/numcn v1.0.0
1717
github.com/sirupsen/logrus v1.9.3
18-
github.com/stretchr/testify v1.11.1
18+
github.com/stretchr/testify v1.9.0
1919
github.com/tidwall/gjson v1.18.0
2020
github.com/wdvxdr1123/ZeroBot v1.8.2-0.20250921063512-13752a73d444
21-
golang.org/x/image v0.31.0
21+
golang.org/x/image v0.21.0
2222
)
2323

2424
require (

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVs
7979
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
8080
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
8181
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
82-
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
83-
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
82+
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
83+
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
8484
github.com/tidwall/gjson v1.18.0 h1:FIDeeyB800efLX89e5a8Y0BNH+LOngJyGrIWxG2FKQY=
8585
github.com/tidwall/gjson v1.18.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk=
8686
github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA=
@@ -99,8 +99,8 @@ golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDf
9999
golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8=
100100
golang.org/x/crypto v0.31.0 h1:ihbySMvVjLAeSH1IbfcRTkD/iNscyz8rGzjF/E5hV6U=
101101
golang.org/x/crypto v0.31.0/go.mod h1:kDsLvtWBEx7MV9tJOj9bnXsPbxwJQ6csT/x4KIN4Ssk=
102-
golang.org/x/image v0.31.0 h1:mLChjE2MV6g1S7oqbXC0/UcKijjm5fnJLUYKIYrLESA=
103-
golang.org/x/image v0.31.0/go.mod h1:R9ec5Lcp96v9FTF+ajwaH3uGxPH4fKfHHAVbUILxghA=
102+
golang.org/x/image v0.21.0 h1:c5qV36ajHpdj4Qi0GnE0jUc/yuo33OLFaa0d+crTD5s=
103+
golang.org/x/image v0.21.0/go.mod h1:vUbsLavqK/W303ZroQQVKQ+Af3Yl6Uz1Ppu5J/cLz78=
104104
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
105105
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
106106
golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=

0 commit comments

Comments
 (0)