| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
run: |
| 16 |
|
| 17 |
timeout: '5m' |
| 18 |
|
| 19 |
|
| 20 |
build-tags: |
| 21 |
- 'all' |
| 22 |
|
| 23 |
|
| 24 |
exclude-dirs: |
| 25 |
- 'third_party' |
| 26 |
|
| 27 |
|
| 28 |
skip-dirs-use-default: false |
| 29 |
|
| 30 |
|
| 31 |
modules-download-mode: 'readonly' |
| 32 |
|
| 33 |
|
| 34 |
allow-parallel-runners: true |
| 35 |
|
| 36 |
linters: |
| 37 |
enable: |
| 38 |
- 'asasalint' |
| 39 |
- 'asciicheck' |
| 40 |
- 'bidichk' |
| 41 |
- 'bodyclose' |
| 42 |
- 'containedctx' |
| 43 |
- 'dupword' |
| 44 |
- 'durationcheck' |
| 45 |
- 'errcheck' |
| 46 |
- 'errchkjson' |
| 47 |
- 'errname' |
| 48 |
- 'errorlint' |
| 49 |
- 'execinquery' |
| 50 |
- 'exhaustive' |
| 51 |
- 'exportloopref' |
| 52 |
- 'forcetypeassert' |
| 53 |
- 'gci' |
| 54 |
- 'gocheckcompilerdirectives' |
| 55 |
- 'godot' |
| 56 |
- 'gofmt' |
| 57 |
- 'gofumpt' |
| 58 |
- 'goheader' |
| 59 |
- 'goimports' |
| 60 |
- 'goprintffuncname' |
| 61 |
- 'gosec' |
| 62 |
- 'gosimple' |
| 63 |
- 'govet' |
| 64 |
- 'importas' |
| 65 |
- 'ineffassign' |
| 66 |
- 'loggercheck' |
| 67 |
- 'makezero' |
| 68 |
- 'mirror' |
| 69 |
- 'misspell' |
| 70 |
- 'nilerr' |
| 71 |
- 'noctx' |
| 72 |
- 'nolintlint' |
| 73 |
- 'nosprintfhostport' |
| 74 |
- 'paralleltest' |
| 75 |
- 'prealloc' |
| 76 |
- 'predeclared' |
| 77 |
- 'protogetter' |
| 78 |
- 'rowserrcheck' |
| 79 |
- 'sloglint' |
| 80 |
- 'spancheck' |
| 81 |
- 'sqlclosecheck' |
| 82 |
- 'staticcheck' |
| 83 |
- 'stylecheck' |
| 84 |
- 'tenv' |
| 85 |
- 'thelper' |
| 86 |
- 'typecheck' |
| 87 |
- 'unconvert' |
| 88 |
- 'unused' |
| 89 |
- 'wastedassign' |
| 90 |
- 'whitespace' |
| 91 |
- 'wrapcheck' |
| 92 |
|
| 93 |
issues: |
| 94 |
|
| 95 |
exclude: |
| 96 |
- '^G102:' |
| 97 |
|
| 98 |
|
| 99 |
exclude-rules: |
| 100 |
|
| 101 |
- path: '_test.go' |
| 102 |
linters: |
| 103 |
- 'wrapcheck' |
| 104 |
|
| 105 |
|
| 106 |
max-issues-per-linter: 0 |
| 107 |
|
| 108 |
|
| 109 |
max-same-issues: 0 |
| 110 |
|
| 111 |
gci: |
| 112 |
sections: |
| 113 |
- 'standard' |
| 114 |
- 'default' |
| 115 |
- 'blank' |
| 116 |
- 'dot' |
| 117 |
|
| 118 |
skip-generated: true |
| 119 |
custom-order: true |
| 120 |
|
| 121 |
gofumpt: |
| 122 |
|
| 123 |
extra-rules: true |
| 124 |
|
| 125 |
sloglint: |
| 126 |
|
| 127 |
context-only: true |
| 128 |
|
| 129 |
static-msg: false |
| 130 |
|
| 131 |
key-naming-case: 'snake' |
| 132 |
|
| 133 |
args-on-sep-lines: true |
| 134 |
|
| 135 |
severity: |
| 136 |
|
| 137 |
default-severity: 'error' |