mirror of
https://github.com/gomods/athens
synced 2026-02-03 12:10:32 +00:00
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:
+13
-11
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user