2022-05-05 02:47:06 +00:00
|
|
|
linters-settings:
|
|
|
|
govet:
|
|
|
|
check-shadowing: true
|
|
|
|
golint:
|
|
|
|
min-confidence: 0
|
|
|
|
gocyclo:
|
2024-12-23 20:41:42 +00:00
|
|
|
min-complexity: 45
|
2022-05-05 02:47:06 +00:00
|
|
|
maligned:
|
|
|
|
suggest-new: true
|
|
|
|
dupl:
|
2024-12-23 20:41:42 +00:00
|
|
|
threshold: 200
|
2022-05-05 02:47:06 +00:00
|
|
|
goconst:
|
|
|
|
min-len: 3
|
2024-12-23 20:41:42 +00:00
|
|
|
min-occurrences: 3
|
2022-05-05 02:47:06 +00:00
|
|
|
|
|
|
|
linters:
|
|
|
|
enable-all: true
|
|
|
|
disable:
|
|
|
|
- maligned
|
|
|
|
- lll
|
|
|
|
- gochecknoinits
|
|
|
|
- gochecknoglobals
|
2024-12-23 20:41:42 +00:00
|
|
|
- funlen
|
|
|
|
- godox
|
|
|
|
- gocognit
|
|
|
|
- whitespace
|
|
|
|
- wsl
|
2022-05-05 02:47:06 +00:00
|
|
|
- wrapcheck
|
2024-12-23 20:41:42 +00:00
|
|
|
- testpackage
|
|
|
|
- nlreturn
|
2022-05-05 02:47:06 +00:00
|
|
|
- gomnd
|
|
|
|
- exhaustivestruct
|
|
|
|
- goerr113
|
2024-12-23 20:41:42 +00:00
|
|
|
- errorlint
|
2022-05-05 02:47:06 +00:00
|
|
|
- nestif
|
2024-12-23 20:41:42 +00:00
|
|
|
- godot
|
|
|
|
- gofumpt
|
2022-05-05 02:47:06 +00:00
|
|
|
- paralleltest
|
2024-12-23 20:41:42 +00:00
|
|
|
- tparallel
|
2022-11-11 04:06:17 +00:00
|
|
|
- thelper
|
|
|
|
- ifshort
|
|
|
|
- exhaustruct
|
2024-12-23 20:41:42 +00:00
|
|
|
- varnamelen
|
|
|
|
- gci
|
|
|
|
- depguard
|
|
|
|
- errchkjson
|
|
|
|
- inamedparam
|
2022-11-11 04:06:17 +00:00
|
|
|
- nonamedreturns
|
2024-12-23 20:41:42 +00:00
|
|
|
- musttag
|
|
|
|
- ireturn
|
|
|
|
- forcetypeassert
|
|
|
|
- cyclop
|
|
|
|
# deprecated linters
|
|
|
|
- deadcode
|
|
|
|
- interfacer
|
|
|
|
- scopelint
|
|
|
|
- varcheck
|
|
|
|
- structcheck
|
|
|
|
- golint
|
2022-11-11 04:06:17 +00:00
|
|
|
- nosnakecase
|