1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-06 08:16:19 +02:00
woodpecker/.golangci.yml

53 lines
826 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.20"
2022-01-06 08:44:14 +02:00
extra-rules: true
forbidigo:
forbid:
- context\.WithCancel$
- ^print.*$
- panic
errorlint:
errorf-multi: true
linters:
disable-all: true
enable:
- bidichk
- errcheck
- gofmt
- goimports
- gosimple
- govet
- ineffassign
- misspell
- revive
- staticcheck
- typecheck
2021-11-27 16:29:37 +02:00
- unused
- whitespace
2022-01-06 08:44:14 +02:00
- gofumpt
- errorlint
- forbidigo
2021-11-26 01:27:43 +02:00
run:
timeout: 5m
go: '1.20'
issues:
exclude-rules:
# gin force us to use string as context key
- path: server/store/context.go
linters:
- staticcheck
- revive
# let cli use print and panic
- path: "cmd/*|cli/*"
linters:
- forbidigo