vspd/.golangci.yml
Jamie Holdstock 63b2a6117d
Use latest golangci-lint release and update linter list. (#484)
* 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.
2024-07-08 09:52:43 -04:00

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