lint: silence non-working go 1.18 lint rules (#4167)

https://github.com/golangci/golangci-lint/issues/2649

WARN [linters context] bodyclose is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649.
WARN [linters context] gosimple is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649.
WARN [linters context] staticcheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649.
WARN [linters context] structcheck is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649.
WARN [linters context] unused is disabled because of go1.18. You can track the evolution of the go1.18 support by following the https://github.com/golangci/golangci-lint/issues/2649.
This commit is contained in:
battlmonstr 2022-05-16 15:24:31 +02:00 committed by GitHub
parent e1dec529d4
commit 3efcdc420f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,15 +7,15 @@ linters:
- gofmt
- deadcode
- errcheck
- gosimple
# - gosimple # 1.18
- govet
- ineffassign
- staticcheck
- structcheck
- unused
# - staticcheck # 1.18
# - structcheck # 1.18
# - unused # 1.18
- varcheck
# - gocritic
- bodyclose
# - bodyclose # 1.18
# - gosec
# - forcetypeassert