github.com/cloudflare/circl@v1.5.0/.golangci.yaml (about) 1 --- 2 linters: 3 disable-all: true 4 enable: 5 # - lll 6 # - gocritic 7 # - gocognit 8 # - gci (deprecated since v1.30.0) 9 # - interfacer (deprecated since v1.38.0) 10 # - scopelint (deprecated since v1.39.0) 11 # - golint (deprecated since v1.41.0) 12 # - structcheck (deprecated since v1.49.0) 13 # - varcheck (deprecated since v1.49.0) 14 # - deadcode (deprecated since v1.49.0) 15 # - exportloopref (deprecated since v1.60.2) 16 - bodyclose 17 - copyloopvar 18 - depguard 19 - dogsled 20 - errcheck 21 - forbidigo 22 - funlen 23 - goconst 24 - gocyclo 25 - gofmt 26 - gofumpt 27 - goimports 28 - gosec 29 - gosimple 30 - govet 31 - ineffassign 32 - misspell 33 - nakedret 34 - staticcheck 35 - stylecheck 36 - typecheck 37 - unconvert 38 - unparam 39 - unused 40 - whitespace 41 42 linters-settings: 43 depguard: 44 rules: 45 main: 46 files: 47 - $all 48 allow: 49 - $gostd 50 - github.com/bwesterb/go-ristretto 51 - github.com/cloudflare/circl 52 funlen: 53 lines: 120 54 statements: 80 55 nestif: 56 min-complexity: 6 57 goconst: 58 min-occurrences: 4 59 govet: 60 enable-all: true 61 disable: 62 - fieldalignment 63 staticcheck: 64 # TODO: replace deprecated elliptic.Marshal, elliptic.GenerateKey, 65 # elliptic.Unmarshal, params.ScalarBaseMult before re-enabling SA1019. 66 checks: ["*", "-SA1019"] 67 gosec: 68 excludes: 69 - G115 70 71 issues: 72 max-issues-per-linter: 0 73 max-same-issues: 0