Upgrade to Go 1.22 toolchain (#1987)

Upgrades to the Go 1.22 toolchain. Upgrades golangci-lint to 1.61.0 and disables some new linters.

---------

Co-authored-by: Nicholas Wiersma <nick@wiersma.co.za>
This commit is contained in:
Matt
2024-09-27 22:51:14 -07:00
committed by GitHub
parent 3856c6feee
commit 0092d3a118
11 changed files with 56 additions and 40 deletions
+13 -11
View File
@@ -16,26 +16,27 @@ linters-settings:
linters:
enable-all: true
disable:
- interfacer # deprecated
- scopelint # deprecated
- maligned # deprecated
- golint # deprecated
- structcheck # deprecated
- deadcode # deprecated
- varcheck # deprecated
- nosnakecase # deprecated
- ifshort # deprecated
- perfsprint # new
- testifylint # new
- spancheck # new
- rowserrcheck # new
- mnd # new
- intrange # new
- depguard # new
- revive # new
- errcheck # new
- errchkjson
- exhaustive
- exhaustivestruct
- exhaustruct
- execinquery # deprecated
- exportloopref # deprecated
- forcetypeassert
- funlen
- gochecknoglobals
- gochecknoinits
- goconst
- godox
- goerr113
- err113
- gomnd
- ireturn
- lll
@@ -60,6 +61,7 @@ issues:
- "G204: Subprocess launched with variable"
- "G402: TLS MinVersion too low."
- "const `op` is unused"
- "G115: integer overflow conversion int -> int32"
exclude-rules:
- path: cmd/proxy/main.go
text: "G108: Profiling endpoint is automatically exposed on /debug/pprof"