2022-06-14 06:19:34 +00:00
|
|
|
run:
|
|
|
|
skip-files:
|
|
|
|
- validator/web/site_data.go
|
|
|
|
- .*_test.go
|
|
|
|
skip-dirs:
|
|
|
|
- proto
|
|
|
|
- tools/analyzers
|
|
|
|
timeout: 10m
|
2023-12-21 16:09:54 +00:00
|
|
|
go: '1.21.5'
|
2019-04-26 06:24:01 +00:00
|
|
|
|
|
|
|
linters:
|
2023-12-18 18:20:55 +00:00
|
|
|
enable-all: true
|
|
|
|
disable:
|
|
|
|
# Deprecated linters:
|
|
|
|
- deadcode
|
|
|
|
- exhaustivestruct
|
|
|
|
- golint
|
|
|
|
- govet
|
|
|
|
- ifshort
|
|
|
|
- interfacer
|
|
|
|
- maligned
|
|
|
|
- nosnakecase
|
|
|
|
- scopelint
|
|
|
|
- structcheck
|
|
|
|
- varcheck
|
|
|
|
|
|
|
|
# Disabled for now:
|
|
|
|
- asasalint
|
|
|
|
- bodyclose
|
|
|
|
- containedctx
|
|
|
|
- contextcheck
|
|
|
|
- cyclop
|
|
|
|
- depguard
|
|
|
|
- dogsled
|
|
|
|
- dupl
|
|
|
|
- durationcheck
|
|
|
|
- errorlint
|
|
|
|
- exhaustive
|
|
|
|
- exhaustruct
|
|
|
|
- forbidigo
|
|
|
|
- forcetypeassert
|
|
|
|
- funlen
|
|
|
|
- gci
|
|
|
|
- gochecknoglobals
|
|
|
|
- gochecknoinits
|
|
|
|
- goconst
|
|
|
|
- gocritic
|
|
|
|
- gocyclo
|
|
|
|
- godot
|
|
|
|
- godox
|
|
|
|
- goerr113
|
|
|
|
- gofumpt
|
|
|
|
- gomnd
|
|
|
|
- gomoddirectives
|
|
|
|
- inamedparam
|
|
|
|
- interfacebloat
|
|
|
|
- ireturn
|
|
|
|
- lll
|
|
|
|
- maintidx
|
|
|
|
- makezero
|
|
|
|
- musttag
|
|
|
|
- nakedret
|
|
|
|
- nestif
|
|
|
|
- nilnil
|
|
|
|
- nlreturn
|
|
|
|
- noctx
|
|
|
|
- nolintlint
|
|
|
|
- nonamedreturns
|
|
|
|
- nosprintfhostport
|
|
|
|
- perfsprint
|
|
|
|
- prealloc
|
|
|
|
- predeclared
|
|
|
|
- promlinter
|
|
|
|
- protogetter
|
|
|
|
- revive
|
|
|
|
- staticcheck
|
|
|
|
- stylecheck
|
|
|
|
- tagalign
|
|
|
|
- tagliatelle
|
|
|
|
- thelper
|
|
|
|
- unparam
|
|
|
|
- varnamelen
|
|
|
|
- wrapcheck
|
|
|
|
- wsl
|
2019-04-26 06:24:01 +00:00
|
|
|
|
2022-06-14 06:19:34 +00:00
|
|
|
linters-settings:
|
|
|
|
gocognit:
|
|
|
|
# TODO: We should target for < 50
|
2022-06-20 03:57:39 +00:00
|
|
|
min-complexity: 65
|
2019-04-26 06:24:01 +00:00
|
|
|
|
2022-06-14 06:19:34 +00:00
|
|
|
output:
|
|
|
|
print-issued-lines: true
|
|
|
|
sort-results: true
|