| 1 | linters-settings: |
| 2 | gocritic: |
| 3 | enabled-tags: |
| 4 | - diagnostic |
| 5 | - experimental |
| 6 | - opinionated |
| 7 | - performance |
| 8 | - style |
| 9 | disabled-checks: |
| 10 | - dupImport |
| 11 | - ifElseChain |
| 12 | - octalLiteral |
| 13 | - whyNoLint |
| 14 | - wrapperFunc |
| 15 | - exitAfterDefer |
| 16 | - hugeParam |
| 17 | - ptrToRefParam |
| 18 | - paramTypeCombine |
| 19 | - unnamedResult |
| 20 | misspell: |
| 21 | locale: US |
| 22 | linters: |
| 23 | disable-all: true |
| 24 | enable: |
| 25 | - errcheck |
| 26 | - gosimple |
| 27 | - govet |
| 28 | - ineffassign |
| 29 | - staticcheck |
| 30 | - asciicheck |
| 31 | - bodyclose |
| 32 | - dupl |
| 33 | - durationcheck |
| 34 | - errorlint |
| 35 | - exhaustive |
| 36 | - gci |
| 37 | - gocognit |
| 38 | - gocritic |
| 39 | - godot |
| 40 | - godox |
| 41 | - goerr113 |
| 42 | - gofmt |
| 43 | - goimports |
| 44 | - goprintffuncname |
| 45 | - misspell |
| 46 | - nilerr |
| 47 | - nlreturn |
| 48 | - noctx |
| 49 | - prealloc |
| 50 | - predeclared |
| 51 | - thelper |
| 52 | - unconvert |
| 53 | - unparam |
| 54 | - wastedassign |
| 55 | - wrapcheck |
| 56 | issues: |
| 57 | # Excluding configuration per-path, per-linter, per-text and per-source |
| 58 | exclude-rules: |
| 59 | - path: _test\.go |
| 60 | linters: |
| 61 | - errcheck |
| 62 | - dupl |
| 63 | - gocritic |
| 64 | - wrapcheck |
| 65 | - goerr113 |
| 66 | # https://github.com/go-critic/go-critic/issues/926 |
| 67 | - linters: |
| 68 | - gocritic |
| 69 | text: "unnecessaryDefer:" |
| 70 | service: |
| 71 | golangci-lint-version: 1.39.x # use the fixed version to not introduce new linters unexpectedly |