Skip to content

Commit 9826e62

Browse files
committed
Update golangci-lint config
1 parent 4e7be7c commit 9826e62

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.golangci.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This is needed for precious, which may run multiple instances
33
# in parallel
44
allow-parallel-runners = true
5-
go = "1.21"
5+
go = "1.23"
66
tests = true
77
timeout = "10m"
88

@@ -15,6 +15,7 @@ disable = [
1515
"execinquery",
1616
"exhaustive",
1717
"exhaustruct",
18+
"exportloopref",
1819
"forcetypeassert",
1920
"funlen",
2021
"gochecknoglobals",
@@ -68,6 +69,13 @@ sections = ["standard", "default", "prefix(github.com/oschwald/maxminddb-golang)
6869
[linters-settings.gofumpt]
6970
extra-rules = true
7071

72+
[linters-settings.gosec]
73+
excludes = [
74+
# integer overflow conversion. There are a lot of these and
75+
# most seem safe or at least low risk.
76+
"G115",
77+
]
78+
7179
[linters-settings.govet]
7280
enable-all = true
7381
disable = "shadow"

0 commit comments

Comments
 (0)