Update golangci-linter config (#1539)

to remove deprecated and enforce v1.19 golang syntax
This commit is contained in:
6543 2023-01-13 22:20:41 +01:00 committed by GitHub
parent 0f6ce5c4e9
commit fecb0354bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,14 +4,13 @@ linters-settings:
misspell: misspell:
locale: US locale: US
gofumpt: gofumpt:
lang-version: "1.16" lang-version: "1.19"
extra-rules: true extra-rules: true
linters: linters:
disable-all: true disable-all: true
enable: enable:
- bidichk - bidichk
- deadcode
- errcheck - errcheck
- gofmt - gofmt
- goimports - goimports
@ -21,15 +20,14 @@ linters:
- misspell - misspell
- revive - revive
- staticcheck - staticcheck
- structcheck
- typecheck - typecheck
- unused - unused
- varcheck
- whitespace - whitespace
- gofumpt - gofumpt
run: run:
timeout: 5m timeout: 5m
go: '1.19'
issues: issues:
exclude-rules: exclude-rules: