mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 04:11:03 +00:00
fecb0354bb
to remove deprecated and enforce v1.19 golang syntax
42 lines
700 B
YAML
42 lines
700 B
YAML
linters-settings:
|
|
gofmt:
|
|
simplify: true
|
|
misspell:
|
|
locale: US
|
|
gofumpt:
|
|
lang-version: "1.19"
|
|
extra-rules: true
|
|
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- bidichk
|
|
- errcheck
|
|
- gofmt
|
|
- goimports
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- misspell
|
|
- revive
|
|
- staticcheck
|
|
- typecheck
|
|
- unused
|
|
- whitespace
|
|
- gofumpt
|
|
|
|
run:
|
|
timeout: 5m
|
|
go: '1.19'
|
|
|
|
issues:
|
|
exclude-rules:
|
|
- path: woodpecker-go/woodpecker/client.go|server/swagger/swagger.go
|
|
linters:
|
|
- deadcode
|
|
- unused
|
|
# gin force us to use string as context key
|
|
- path: server/store/context.go
|
|
linters:
|
|
- staticcheck
|
|
- revive
|