2021-10-27 16:07:19 +09:00
|
|
|
---
|
|
|
|
run:
|
2021-11-13 18:11:03 +09:00
|
|
|
timeout: 10m
|
2022-11-13 21:34:08 +09:00
|
|
|
build-tags:
|
|
|
|
- ts2019
|
2021-10-27 16:08:24 +09:00
|
|
|
|
|
|
|
issues:
|
|
|
|
skip-dirs:
|
|
|
|
- gen
|
2021-11-13 17:53:34 +09:00
|
|
|
linters:
|
|
|
|
enable-all: true
|
|
|
|
disable:
|
2023-07-17 18:12:59 +09:00
|
|
|
- depguard
|
|
|
|
|
2021-11-13 17:53:34 +09:00
|
|
|
- revive
|
|
|
|
- lll
|
|
|
|
- gofmt
|
|
|
|
- gochecknoglobals
|
|
|
|
- gochecknoinits
|
|
|
|
- gocognit
|
|
|
|
- funlen
|
|
|
|
- tagliatelle
|
|
|
|
- godox
|
2022-05-16 21:29:05 +09:00
|
|
|
- ireturn
|
|
|
|
- execinquery
|
2022-05-16 22:13:16 +09:00
|
|
|
- exhaustruct
|
2022-11-05 17:07:22 +09:00
|
|
|
- nolintlint
|
2023-04-05 05:24:47 +09:00
|
|
|
- musttag # causes issues with imported libs
|
2023-09-01 01:37:18 +09:00
|
|
|
- depguard
|
2024-11-23 00:54:58 +09:00
|
|
|
- exportloopref
|
2023-04-05 05:24:47 +09:00
|
|
|
|
2021-11-13 17:53:34 +09:00
|
|
|
# We should strive to enable these:
|
|
|
|
- wrapcheck
|
|
|
|
- dupl
|
2021-11-15 02:03:21 +09:00
|
|
|
- makezero
|
2022-05-16 21:29:05 +09:00
|
|
|
- maintidx
|
2021-11-13 17:53:34 +09:00
|
|
|
|
2022-11-14 01:02:42 +09:00
|
|
|
# Limits the methods of an interface to 10. We have more in integration tests
|
|
|
|
- interfacebloat
|
|
|
|
|
2021-11-13 17:53:34 +09:00
|
|
|
# We might want to enable this, but it might be a lot of work
|
|
|
|
- cyclop
|
|
|
|
- nestif
|
2021-11-15 00:49:54 +09:00
|
|
|
- wsl # might be incompatible with gofumpt
|
2021-11-16 01:26:41 +09:00
|
|
|
- testpackage
|
2021-11-16 03:42:44 +09:00
|
|
|
- paralleltest
|
2021-11-16 01:16:16 +09:00
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
varnamelen:
|
|
|
|
ignore-type-assert-ok: true
|
|
|
|
ignore-map-index-ok: true
|
|
|
|
ignore-names:
|
|
|
|
- err
|
|
|
|
- db
|
|
|
|
- id
|
|
|
|
- ip
|
|
|
|
- ok
|
|
|
|
- c
|
2022-02-22 00:10:20 +09:00
|
|
|
- tt
|
2024-11-23 00:54:58 +09:00
|
|
|
- tx
|
|
|
|
- rx
|
2021-11-24 19:13:41 +09:00
|
|
|
|
|
|
|
gocritic:
|
|
|
|
disabled-checks:
|
|
|
|
- appendAssign
|
|
|
|
# TODO(kradalby): Remove this
|
|
|
|
- ifElseChain
|
2024-11-23 00:54:58 +09:00
|
|
|
|
|
|
|
nlreturn:
|
|
|
|
block-size: 4
|