Skip to content

Commit

Permalink
Update golangci-lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Sep 22, 2024
1 parent 4e7be7c commit 9826e62
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .golangci.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This is needed for precious, which may run multiple instances
# in parallel
allow-parallel-runners = true
go = "1.21"
go = "1.23"
tests = true
timeout = "10m"

Expand All @@ -15,6 +15,7 @@ disable = [
"execinquery",
"exhaustive",
"exhaustruct",
"exportloopref",
"forcetypeassert",
"funlen",
"gochecknoglobals",
Expand Down Expand Up @@ -68,6 +69,13 @@ sections = ["standard", "default", "prefix(github.com/oschwald/maxminddb-golang)
[linters-settings.gofumpt]
extra-rules = true

[linters-settings.gosec]
excludes = [
# integer overflow conversion. There are a lot of these and
# most seem safe or at least low risk.
"G115",
]

[linters-settings.govet]
enable-all = true
disable = "shadow"
Expand Down

0 comments on commit 9826e62

Please sign in to comment.