blob: 2ef168198c272fd3f3209d4ac8fd8b23fb6a8748 [file] [log] [blame]
Mahir Gunyel82f98dd2023-07-24 10:29:49 +03001# See https://github.com/golangci/golangci-lint#config-file
2run:
3 issues-exit-code: 1 #Default
4 tests: true #Default
5
6linters:
7 enable:
8 - misspell
9 - goimports
10 - golint
11 - gofmt
12
13issues:
14 exclude-rules:
15 # helpers in tests often (rightfully) pass a *testing.T as their first argument
16 - path: _test\.go
17 text: "context.Context should be the first parameter of a function"
18 linters:
19 - golint
20 # Yes, they are, but it's okay in a test
21 - path: _test\.go
22 text: "exported func.*returns unexported type.*which can be annoying to use"
23 linters:
24 - golint
25
26linters-settings:
27 misspell:
28 locale: US
29 ignore-words:
30 - cancelled
31 goimports:
32 local-prefixes: go.opentelemetry.io