serkant.uluderya | e5afeff | 2021-02-23 18:00:23 +0300 | [diff] [blame^] | 1 | # See https://github.com/golangci/golangci-lint#config-file |
| 2 | run: |
| 3 | issues-exit-code: 1 #Default |
| 4 | tests: true #Default |
| 5 | |
| 6 | linters: |
| 7 | enable: |
| 8 | - misspell |
| 9 | - goimports |
| 10 | - golint |
| 11 | - gofmt |
| 12 | |
| 13 | issues: |
| 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 | |
| 26 | linters-settings: |
| 27 | misspell: |
| 28 | locale: US |
| 29 | ignore-words: |
| 30 | - cancelled |
| 31 | goimports: |
| 32 | local-prefixes: go.opentelemetry.io |