
* ci, go.mod: bump to go 1.23 Now that go.mod matches our go version, we can stop setting go version in CI separately. Signed-off-by: Casey Callendrello <c1@caseyc.net> * minor: fix lint errors Bumping golangci-lint to v1.61 introduced some new reasonable checks; fix the errors they found. Signed-off-by: Casey Callendrello <c1@caseyc.net> * ci: bump golangci-lint to v1.61.0 Also, fix some deprecated config directives. Signed-off-by: Casey Callendrello <c1@caseyc.net> --------- Signed-off-by: Casey Callendrello <c1@caseyc.net>
45 lines
772 B
YAML
45 lines
772 B
YAML
issues:
|
|
exclude-rules:
|
|
- linters:
|
|
- revive
|
|
text: "don't use ALL_CAPS in Go names; use CamelCase"
|
|
- linters:
|
|
- revive
|
|
text: " and that stutters;"
|
|
- path: '(.+)_test\.go'
|
|
text: "dot-imports: should not use dot imports"
|
|
|
|
linters:
|
|
disable:
|
|
- errcheck
|
|
enable:
|
|
- contextcheck
|
|
- durationcheck
|
|
- gci
|
|
- ginkgolinter
|
|
- gocritic
|
|
- gofumpt
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- misspell
|
|
- nonamedreturns
|
|
- predeclared
|
|
- revive
|
|
- staticcheck
|
|
- unconvert
|
|
- unparam
|
|
- unused
|
|
- wastedassign
|
|
|
|
linters-settings:
|
|
gci:
|
|
sections:
|
|
- standard
|
|
- default
|
|
- prefix(github.com/containernetworking)
|
|
|
|
run:
|
|
timeout: 5m
|
|
modules-download-mode: vendor
|