.golangci.yml
raw| 1 | version: "2" |
| 2 | run: |
| 3 | go: "1.22" |
| 4 | output: |
| 5 | sort-order: |
| 6 | - linter |
| 7 | - file |
| 8 | linters: |
| 9 | enable: |
| 10 | - asasalint |
| 11 | - asciicheck |
| 12 | - bidichk |
| 13 | - bodyclose |
| 14 | - containedctx |
| 15 | - copyloopvar |
| 16 | - cyclop |
| 17 | - decorder |
| 18 | - dogsled |
| 19 | - errchkjson |
| 20 | - errname |
| 21 | - errorlint |
| 22 | - exhaustive |
| 23 | - forcetypeassert |
| 24 | - funlen |
| 25 | - ginkgolinter |
| 26 | - gocheckcompilerdirectives |
| 27 | - gochecksumtype |
| 28 | - godot |
| 29 | - goheader |
| 30 | - gomoddirectives |
| 31 | - gomodguard |
| 32 | - goprintffuncname |
| 33 | - grouper |
| 34 | - importas |
| 35 | - intrange |
| 36 | - loggercheck |
| 37 | - makezero |
| 38 | - mirror |
| 39 | - misspell |
| 40 | - nakedret |
| 41 | - nestif |
| 42 | - nilnil |
| 43 | - nlreturn |
| 44 | - nonamedreturns |
| 45 | - nosprintfhostport |
| 46 | - prealloc |
| 47 | - predeclared |
| 48 | - promlinter |
| 49 | - protogetter |
| 50 | - reassign |
| 51 | - sloglint |
| 52 | - spancheck |
| 53 | - tagalign |
| 54 | - testableexamples |
| 55 | - testifylint |
| 56 | - thelper |
| 57 | - unconvert |
| 58 | - usestdlibvars |
| 59 | - usetesting |
| 60 | - whitespace |
| 61 | - zerologlint |
| 62 | settings: |
| 63 | cyclop: |
| 64 | max-complexity: 22 |
| 65 | errcheck: |
| 66 | exclude-functions: |
| 67 | - fmt.Fprint |
| 68 | - fmt.Fprintf |
| 69 | - fmt.Fprintln |
| 70 | funlen: |
| 71 | lines: -1 |
| 72 | statements: 100 |
| 73 | gocyclo: |
| 74 | min-complexity: 22 |
| 75 | staticcheck: |
| 76 | checks: |
| 77 | - all |
| 78 | - -SA1019 |
| 79 | - -ST1000 |
| 80 | exclusions: |
| 81 | generated: lax |
| 82 | rules: |
| 83 | - linters: |
| 84 | - cyclop |
| 85 | path: (.+)_test\.go |
| 86 | paths: |
| 87 | - helpers/ |
| 88 | - third_party$ |
| 89 | - builtin$ |
| 90 | - examples$ |
| 91 | issues: |
| 92 | max-issues-per-linter: 0 |
| 93 | max-same-issues: 0 |
| 94 | formatters: |
| 95 | enable: |
| 96 | - gofmt |
| 97 | - gofumpt |
| 98 | - goimports |
| 99 | exclusions: |
| 100 | generated: lax |
| 101 | paths: |
| 102 | - helpers/ |
| 103 | - third_party$ |
| 104 | - builtin$ |
| 105 | - examples$ |