| 1 | version: "2" |
| 2 | linters: |
| 3 | default: none |
| 4 | enable: |
| 5 | - bodyclose |
| 6 | - copyloopvar |
| 7 | - depguard |
| 8 | - dogsled |
| 9 | - errcheck |
| 10 | - forbidigo |
| 11 | - funlen |
| 12 | - goconst |
| 13 | - gocyclo |
| 14 | - gosec |
| 15 | - govet |
| 16 | - ineffassign |
| 17 | - misspell |
| 18 | - nakedret |
| 19 | - staticcheck |
| 20 | - unconvert |
| 21 | - unparam |
| 22 | - unused |
| 23 | - whitespace |
| 24 | settings: |
| 25 | depguard: |
| 26 | rules: |
| 27 | main: |
| 28 | files: |
| 29 | - $all |
| 30 | allow: |
| 31 | - $gostd |
| 32 | - golang.org/x |
| 33 | - github.com/bwesterb/go-ristretto |
| 34 | - github.com/cloudflare/circl |
| 35 | funlen: |
| 36 | lines: 120 |
| 37 | statements: 80 |
| 38 | goconst: |
| 39 | min-occurrences: 4 |
| 40 | gosec: |
| 41 | excludes: |
| 42 | - G115 |
| 43 | govet: |
| 44 | disable: |
| 45 | - fieldalignment |
| 46 | enable-all: true |
| 47 | nestif: |
| 48 | min-complexity: 6 |
| 49 | staticcheck: |
| 50 | checks: |
| 51 | # Don't bother omitting embedded fields from selector expressions |
| 52 | # https://staticcheck.dev/docs/checks/#QF1008 |
| 53 | - -QF1008 |
| 54 | exclusions: |
| 55 | generated: lax |
| 56 | issues: |
| 57 | max-issues-per-linter: 0 |
| 58 | max-same-issues: 0 |
| 59 | formatters: |
| 60 | enable: |
| 61 | - gofmt |
| 62 | - gofumpt |
| 63 | - goimports |