build: Add extra linters.
Some of these cover points which have recently been highlighted in reviews, such as contexts contained in structs, slices initialized with zero length, and periods missing from the end of comments.
This commit is contained in:
parent
5f81b0b40e
commit
a4d21d7838
@ -6,19 +6,28 @@ linters:
|
||||
enable:
|
||||
- asciicheck
|
||||
- bidichk
|
||||
- containedctx
|
||||
- dupword
|
||||
- durationcheck
|
||||
- errcheck
|
||||
- errchkjson
|
||||
- errorlint
|
||||
- exhaustive
|
||||
- exportloopref
|
||||
- goconst
|
||||
- godot
|
||||
- gofmt
|
||||
- goimports
|
||||
- gosimple
|
||||
- govet
|
||||
- ineffassign
|
||||
- makezero
|
||||
- misspell
|
||||
- nilerr
|
||||
- nosprintfhostport
|
||||
- prealloc
|
||||
- predeclared
|
||||
- reassign
|
||||
- revive
|
||||
- staticcheck
|
||||
- tparallel
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user