vspd/.golangci.yml
jholdstock 5263bfc2e1 build: Update golangci-lint to v2.0.2
Various changes in this new major version, including a new config file
format:

- "gofmt" and "goimports" are now categorized as formatters
  (instead of linters) and are moved to their own section.
- The functionality of "gosimple" has been bundled into "staticcheck".
- "typecheck" is now always on and cannot be independently
  enabled/disabled.
2025-04-15 09:34:37 +01:00

47 lines
697 B
YAML

version: "2"
run:
timeout: 10m
linters:
default: none
enable:
- asciicheck
- bidichk
- containedctx
- copyloopvar
- dupword
- durationcheck
- errcheck
- errchkjson
- errorlint
- exhaustive
- fatcontext
- goconst
- godot
- govet
- ineffassign
- makezero
- mirror
- misspell
- nilerr
- nilnil
- nosprintfhostport
- prealloc
- predeclared
- reassign
- revive
- staticcheck
- tparallel
- unconvert
- unparam
- unused
- usestdlibvars
- usetesting
exclusions:
presets:
- comments
- std-error-handling
formatters:
enable:
- gofmt
- goimports