mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-30 05:41:12 +00:00
Update golangci-linter config (#1539)
to remove deprecated and enforce v1.19 golang syntax
This commit is contained in:
parent
0f6ce5c4e9
commit
fecb0354bb
1 changed files with 2 additions and 4 deletions
|
@ -4,14 +4,13 @@ linters-settings:
|
|||
misspell:
|
||||
locale: US
|
||||
gofumpt:
|
||||
lang-version: "1.16"
|
||||
lang-version: "1.19"
|
||||
extra-rules: true
|
||||
|
||||
linters:
|
||||
disable-all: true
|
||||
enable:
|
||||
- bidichk
|
||||
- deadcode
|
||||
- errcheck
|
||||
- gofmt
|
||||
- goimports
|
||||
|
@ -21,15 +20,14 @@ linters:
|
|||
- misspell
|
||||
- revive
|
||||
- staticcheck
|
||||
- structcheck
|
||||
- typecheck
|
||||
- unused
|
||||
- varcheck
|
||||
- whitespace
|
||||
- gofumpt
|
||||
|
||||
run:
|
||||
timeout: 5m
|
||||
go: '1.19'
|
||||
|
||||
issues:
|
||||
exclude-rules:
|
||||
|
|
Loading…
Reference in a new issue