| 1 | version: "2" |
| 2 | run: |
| 3 | issues-exit-code: 1 |
| 4 | linters: |
| 5 | enable: |
| 6 | - asciicheck |
| 7 | - errorlint |
| 8 | - gocritic |
| 9 | - gosec |
| 10 | - importas |
| 11 | - misspell |
| 12 | - prealloc |
| 13 | - revive |
| 14 | - staticcheck |
| 15 | - tparallel |
| 16 | - unconvert |
| 17 | - unparam |
| 18 | - whitespace |
| 19 | exclusions: |
| 20 | generated: lax |
| 21 | presets: |
| 22 | - comments |
| 23 | - common-false-positives |
| 24 | - legacy |
| 25 | - std-error-handling |
| 26 | rules: |
| 27 | - linters: |
| 28 | - errcheck |
| 29 | - gosec |
| 30 | path: _test\.go |
| 31 | - linters: |
| 32 | - staticcheck |
| 33 | text: 'SA1019: package golang.org/x/crypto/openpgp' |
| 34 | paths: |
| 35 | - internal/fork |
| 36 | - third_party$ |
| 37 | - builtin$ |
| 38 | - examples$ |
| 39 | issues: |
| 40 | max-issues-per-linter: 0 |
| 41 | max-same-issues: 0 |
| 42 | formatters: |
| 43 | enable: |
| 44 | - gofmt |
| 45 | - goimports |
| 46 | exclusions: |
| 47 | generated: lax |
| 48 | paths: |
| 49 | - internal/fork |
| 50 | - third_party$ |
| 51 | - builtin$ |
| 52 | - examples$ |