Skip to content

Commit d4640c9

Browse files
committed
chore: bump go, fix linter
linter was throwing deprecation errors. bumped Go to latest in 1.23.x series.
1 parent 3b13746 commit d4640c9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.golangci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ output:
1717
# print linter name in the end of issue text, default is true
1818
print-linter-name: true
1919

20-
# make issues output unique by line, default is true
21-
uniq-by-line: true
22-
2320
# This section provides the configuration for which linters
2421
# golangci will execute. Several of them were disabled by
2522
# default but we've opted to enable them.
@@ -31,10 +28,10 @@ linters:
3128
- bidichk # checks for dangerous unicode character sequences
3229
- bodyclose # checks whether HTTP response body is closed successfully
3330
- contextcheck # check the function whether use a non-inherited context
31+
- copyloopvar # detects places where loop variables are copied
3432
- dupl # code clone detection
3533
- errcheck # checks for unchecked errors
3634
- errorlint # find misuses of errors
37-
- exportloopref # check for exported loop vars
3835
- funlen # detects long functions
3936
- gci # consistent import order
4037
- goconst # finds repeated strings that could be replaced by a constant
@@ -76,6 +73,7 @@ linters:
7673
# - errname - unused
7774
# - exhaustive - unused
7875
# - exhaustivestruct - style preference
76+
# - exportloopref - check for exported loop vars
7977
# - forbidigo - unused
8078
# - forcetypeassert - unused
8179
# - gochecknoinits - unused
@@ -154,6 +152,7 @@ linters-settings:
154152
# will report the issues it finds.
155153
issues:
156154
# Excluding configuration per-path, per-linter, per-text and per-source
155+
uniq-by-line: true
157156
exclude-rules:
158157
# prevent linters from running on *_test.go files
159158
- path: _test\.go
@@ -166,3 +165,4 @@ issues:
166165
- testdata
167166
- helm
168167
- config-example
168+
- config

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/target/flottbot
22

3-
go 1.23.0
3+
go 1.23.6
44

55
require (
66
cloud.google.com/go/pubsub v1.45.3

0 commit comments

Comments
 (0)