mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
e204d863a5
* Update Kubernetes to v1.22.1 * Update dependent modules to track with upstream Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
33 lines
750 B
YAML
33 lines
750 B
YAML
# See https://github.com/golangci/golangci-lint#config-file
|
|
run:
|
|
issues-exit-code: 1 #Default
|
|
tests: true #Default
|
|
|
|
linters:
|
|
enable:
|
|
- misspell
|
|
- goimports
|
|
- golint
|
|
- gofmt
|
|
|
|
issues:
|
|
exclude-rules:
|
|
# helpers in tests often (rightfully) pass a *testing.T as their first argument
|
|
- path: _test\.go
|
|
text: "context.Context should be the first parameter of a function"
|
|
linters:
|
|
- golint
|
|
# Yes, they are, but it's okay in a test
|
|
- path: _test\.go
|
|
text: "exported func.*returns unexported type.*which can be annoying to use"
|
|
linters:
|
|
- golint
|
|
|
|
linters-settings:
|
|
misspell:
|
|
locale: US
|
|
ignore-words:
|
|
- cancelled
|
|
goimports:
|
|
local-prefixes: go.opentelemetry.io
|