2019-06-19 02:09:49 +02:00
|
|
|
# See https://github.com/golangci/golangci-lint#config-file
|
|
|
|
run:
|
|
|
|
issues-exit-code: 1 #Default
|
2019-08-05 22:58:24 +02:00
|
|
|
tests: true #Default
|
|
|
|
|
|
|
|
linters:
|
|
|
|
enable:
|
|
|
|
- misspell
|
|
|
|
- goimports
|
2019-10-16 19:24:38 +02:00
|
|
|
- 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
|
2019-08-05 22:58:24 +02:00
|
|
|
|
|
|
|
linters-settings:
|
|
|
|
misspell:
|
|
|
|
locale: US
|
|
|
|
#ignore-words:
|
|
|
|
# - someword
|
|
|
|
goimports:
|
2019-08-26 18:41:15 +02:00
|
|
|
local-prefixes: go.opentelemetry.io
|