.golangci.yml
raw| 1 | version: "2" |
| 2 | linters: |
| 3 | enable: |
| 4 | - bodyclose |
| 5 | - errorlint |
| 6 | - rowserrcheck |
| 7 | - sqlclosecheck |
| 8 | - nilerr |
| 9 | - noctx |
| 10 | - contextcheck |
| 11 | - misspell |
| 12 | - unconvert |
| 13 | - unparam |
| 14 | - prealloc |
| 15 | - gocritic |
| 16 | - revive |
| 17 | - gosec |
| 18 | |
| 19 | settings: |
| 20 | gosec: |
| 21 | excludes: |
| 22 | - G115 # integer overflow — bounds enforced by upstream invariants in crypto/IO paths |
| 23 | exclusions: |
| 24 | generated: lax |
| 25 | presets: |
| 26 | - comments |
| 27 | - common-false-positives |
| 28 | - legacy |
| 29 | - std-error-handling |
| 30 | rules: |
| 31 | - linters: |
| 32 | - errcheck |
| 33 | - govet |
| 34 | - ineffassign |
| 35 | - staticcheck |
| 36 | - unused |
| 37 | path: \.pb\.go$ |
| 38 | paths: |
| 39 | - internal/pb |
| 40 | - third_party$ |
| 41 | - builtin$ |
| 42 | - examples$ |
| 43 | formatters: |
| 44 | exclusions: |
| 45 | generated: lax |
| 46 | paths: |
| 47 | - third_party$ |
| 48 | - builtin$ |
| 49 | - examples$ |