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