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:
jholdstock 2023-08-24 07:38:08 +01:00 committed by Jamie Holdstock
parent 5f81b0b40e
commit a4d21d7838

View File

@ -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