mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-05-02 14:28:43 +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
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue