2021-11-14 22:01:54 +02:00
|
|
|
linters-settings:
|
|
|
|
gofmt:
|
2021-11-14 23:33:45 +02:00
|
|
|
simplify: true
|
2021-11-24 03:01:12 +02:00
|
|
|
misspell:
|
|
|
|
locale: US
|
2022-01-06 08:44:14 +02:00
|
|
|
gofumpt:
|
2023-03-21 01:48:15 +02:00
|
|
|
lang-version: "1.20"
|
2022-01-06 08:44:14 +02:00
|
|
|
extra-rules: true
|
2023-03-21 01:48:15 +02:00
|
|
|
forbidigo:
|
|
|
|
forbid:
|
|
|
|
- context\.WithCancel$
|
|
|
|
- ^print.*$
|
|
|
|
- panic
|
|
|
|
errorlint:
|
|
|
|
errorf-multi: true
|
2021-11-14 22:01:54 +02:00
|
|
|
|
|
|
|
linters:
|
|
|
|
disable-all: true
|
|
|
|
enable:
|
2021-12-01 15:43:35 +02:00
|
|
|
- bidichk
|
|
|
|
- errcheck
|
2021-11-14 22:01:54 +02:00
|
|
|
- gofmt
|
|
|
|
- goimports
|
2021-11-23 16:36:52 +02:00
|
|
|
- gosimple
|
2021-12-01 15:43:35 +02:00
|
|
|
- govet
|
|
|
|
- ineffassign
|
2021-11-24 03:01:12 +02:00
|
|
|
- misspell
|
2021-12-01 15:43:35 +02:00
|
|
|
- revive
|
2021-11-25 18:15:36 +02:00
|
|
|
- staticcheck
|
2021-12-01 15:43:35 +02:00
|
|
|
- typecheck
|
2021-11-27 16:29:37 +02:00
|
|
|
- unused
|
2021-12-01 15:43:35 +02:00
|
|
|
- whitespace
|
2022-01-06 08:44:14 +02:00
|
|
|
- gofumpt
|
2023-02-02 01:08:02 +02:00
|
|
|
- errorlint
|
2023-03-21 01:48:15 +02:00
|
|
|
- forbidigo
|
2021-11-26 01:27:43 +02:00
|
|
|
|
2021-11-16 22:07:53 +02:00
|
|
|
run:
|
|
|
|
timeout: 5m
|
2023-03-21 01:48:15 +02:00
|
|
|
go: '1.20'
|
2021-11-23 16:36:52 +02:00
|
|
|
|
|
|
|
issues:
|
|
|
|
exclude-rules:
|
2022-10-28 19:17:30 +02:00
|
|
|
# gin force us to use string as context key
|
|
|
|
- path: server/store/context.go
|
|
|
|
linters:
|
|
|
|
- staticcheck
|
|
|
|
- revive
|
2023-03-21 01:48:15 +02:00
|
|
|
|
|
|
|
# let cli use print and panic
|
|
|
|
- path: "cmd/*|cli/*"
|
|
|
|
linters:
|
|
|
|
- forbidigo
|