golangci: use stricter settings

Check test code, use more linters and reenable some disabled-by-default golint
checks.

Signed-off-by: Roman Khimov <roman@nspcc.ru>
This commit is contained in:
Roman Khimov 2021-05-13 15:22:40 +03:00 committed by Stanislav Bogatyrev
parent df3c87af79
commit 9735f567af

View file

@ -7,7 +7,7 @@ run:
timeout: 5m
# include test files or not, default is true
tests: false
tests: true
# output configuration options
output:
@ -32,16 +32,28 @@ linters:
- golint
# some default golangci-lint linters
- deadcode
- errcheck
- gosimple
- ineffassign
- staticcheck
- structcheck
- typecheck
- unused
- varcheck
# extra linters
- exhaustive
- godot
- gofmt
- whitespace
- goimports
disable-all: true
fast: false
issues:
include:
- EXC0002 # should have a comment
- EXC0003 # test/Test ... consider calling this
- EXC0004 # govet
- EXC0005 # C-style breaks