forked from TrueCloudLab/frostfs-http-gw
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:
parent
df3c87af79
commit
9735f567af
1 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue