woodpecker/.golangci.yml

44 lines
716 B
YAML
Raw Normal View History

linters-settings:
gofmt:
simplify: true
misspell:
locale: US
2022-01-06 06:44:14 +00:00
gofumpt:
lang-version: "1.19"
2022-01-06 06:44:14 +00:00
extra-rules: true
linters:
disable-all: true
enable:
- bidichk
- errcheck
- gofmt
- goimports
- gosimple
- govet
- ineffassign
- misspell
- revive
- staticcheck
- typecheck
2021-11-27 14:29:37 +00:00
- unused
- whitespace
2022-01-06 06:44:14 +00:00
- gofumpt
- errorlint
2021-11-25 23:27:43 +00:00
run:
timeout: 5m
go: '1.19'
issues:
exclude-rules:
- path: woodpecker-go/woodpecker/client.go|server/swagger/swagger.go
linters:
- deadcode
2021-11-27 14:29:37 +00:00
- unused
# gin force us to use string as context key
- path: server/store/context.go
linters:
- staticcheck
- revive