1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-11-30 08:06:52 +02:00
woodpecker/.golangci.yml

45 lines
735 B
YAML
Raw Normal View History

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