Skip to content

Commit bc12e05

Browse files
authored
chore: update to go 1.23 and adjust linter rules (#70)
1 parent daf2fdf commit bc12e05

File tree

5 files changed

+5
-9
lines changed

5 files changed

+5
-9
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ jobs:
2424
- name: golangci-lint
2525
uses: golangci/golangci-lint-action@v6
2626
with:
27-
version: v1.61
27+
version: v1.64
2828
only-new-issues: true

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
strategy:
1515
matrix:
16-
go: [ '1.22', '1.*' ]
16+
go: [ '1.23', '1.*' ]
1717
name: Tests
1818
steps:
1919
- uses: actions/checkout@v4

.golangci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ output:
1212
- format: colored-line-number
1313
print-issued-lines: true
1414
print-linter-name: true
15-
uniq-by-line: true
1615
sort-results: true
1716

1817
linters:
@@ -57,7 +56,6 @@ linters:
5756
- predeclared
5857
- revive
5958
- staticcheck
60-
- tenv
6159
- testpackage
6260
- thelper
6361
- tparallel
@@ -66,6 +64,7 @@ linters:
6664
- unparam
6765
- unused
6866
- usestdlibvars
67+
- usetesting
6968
- varnamelen
7069
- wrapcheck
7170
- wsl
@@ -74,6 +73,7 @@ issues:
7473
new: false
7574
fix: false
7675
new-from-rev: b5fdfaa2bd30e666511e4648f27d8a26fd8512cb
76+
uniq-by-line: true
7777
exclude-rules:
7878
- path: _test\.go
7979
linters:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module flamingo.me/dingo
22

3-
go 1.22
3+
go 1.23
44

55
require github.com/stretchr/testify v1.10.0
66

go.sum

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
22
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
33
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
44
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
5-
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
6-
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
7-
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
8-
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
95
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
106
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
117
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=

0 commit comments

Comments
 (0)