* ci: Update linter to 1.59.1. Also remove deprecated linter "vetshadow", its functionality is now included in the "govet" linter. * ci: Add new linters. - fatcontext - Detects nested contexts in loops. - mirror - Reports wrong mirror patterns of bytes/strings usage. - nilnil - Checks that there is no simultaneous return of nil error and an invalid value. - usestdlibvars - detect the possibility to use variables/constants from the Go standard library.
42 lines
613 B
YAML
42 lines
613 B
YAML
run:
|
|
deadline: 10m
|
|
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- asciicheck
|
|
- bidichk
|
|
- containedctx
|
|
- dupword
|
|
- durationcheck
|
|
- errcheck
|
|
- errchkjson
|
|
- errorlint
|
|
- exhaustive
|
|
- exportloopref
|
|
- fatcontext
|
|
- goconst
|
|
- godot
|
|
- gofmt
|
|
- goimports
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- makezero
|
|
- mirror
|
|
- misspell
|
|
- nilerr
|
|
- nilnil
|
|
- nosprintfhostport
|
|
- prealloc
|
|
- predeclared
|
|
- reassign
|
|
- revive
|
|
- staticcheck
|
|
- tparallel
|
|
- typecheck
|
|
- unconvert
|
|
- usestdlibvars
|
|
- unparam
|
|
- unused
|