.golangci.yaml
raw| 1 | version: "2" |
| 2 | linters: |
| 3 | settings: |
| 4 | staticcheck: |
| 5 | # The merged staticcheck linter pulls in more check families than this |
| 6 | # repo has ever run; keep it to the set that was in force before. |
| 7 | checks: |
| 8 | - SA* |
| 9 | - S1* |
| 10 | exclusions: |
| 11 | generated: lax |
| 12 | presets: |
| 13 | - comments |
| 14 | - common-false-positives |
| 15 | - legacy |
| 16 | - std-error-handling |
| 17 | rules: |
| 18 | - linters: |
| 19 | - errcheck |
| 20 | text: Unsubscribe |
| 21 | - linters: |
| 22 | - errcheck |
| 23 | text: Drain |
| 24 | - linters: |
| 25 | - errcheck |
| 26 | text: msg.Ack |
| 27 | - linters: |
| 28 | - errcheck |
| 29 | text: watcher.Stop |
| 30 | paths: |
| 31 | - third_party$ |
| 32 | - builtin$ |
| 33 | - examples$ |
| 34 | issues: |
| 35 | max-issues-per-linter: 0 |
| 36 | max-same-issues: 0 |
| 37 | formatters: |
| 38 | exclusions: |
| 39 | generated: lax |
| 40 | paths: |
| 41 | - third_party$ |
| 42 | - builtin$ |
| 43 | - examples$ |