|
| 1 | +--- |
| 2 | +issues: |
| 3 | + exclude-rules: |
| 4 | + - linters: [dupl, lll mnd] |
| 5 | + path: (.+)_test\.go |
| 6 | + exclude-use-default: true |
| 7 | +linters: |
| 8 | + disable-all: true |
| 9 | + enable: |
| 10 | + - asasalint |
| 11 | + - asciicheck |
| 12 | + - bidichk |
| 13 | + - bodyclose |
| 14 | + - contextcheck |
| 15 | + - decorder |
| 16 | + - depguard |
| 17 | + - dogsled |
| 18 | + - dupl |
| 19 | + - dupword |
| 20 | + - durationcheck |
| 21 | + - errcheck |
| 22 | + - errchkjson |
| 23 | + - errname |
| 24 | + - errorlint |
| 25 | + - exhaustive |
| 26 | + - fatcontext |
| 27 | + - forcetypeassert |
| 28 | + - funlen |
| 29 | + - gocheckcompilerdirectives |
| 30 | + - gochecknoinits |
| 31 | + - gocognit |
| 32 | + - goconst |
| 33 | + - gocritic |
| 34 | + - gocyclo |
| 35 | + - godot |
| 36 | + - godox |
| 37 | + - gofumpt |
| 38 | + - gomoddirectives |
| 39 | + - goprintffuncname |
| 40 | + - gosec |
| 41 | + - gosimple |
| 42 | + - govet |
| 43 | + - iface |
| 44 | + - importas |
| 45 | + - ineffassign |
| 46 | + - interfacebloat |
| 47 | + - intrange |
| 48 | + - ireturn |
| 49 | + - lll |
| 50 | + - loggercheck |
| 51 | + - makezero |
| 52 | + - mirror |
| 53 | + - misspell |
| 54 | + - mnd |
| 55 | + - musttag |
| 56 | + - nakedret |
| 57 | + - nestif |
| 58 | + - nilerr |
| 59 | + - nilnil |
| 60 | + - noctx |
| 61 | + - nolintlint |
| 62 | + - perfsprint |
| 63 | + - prealloc |
| 64 | + - predeclared |
| 65 | + - protogetter |
| 66 | + - recvcheck |
| 67 | + - revive |
| 68 | + - rowserrcheck |
| 69 | + - sloglint |
| 70 | + - spancheck |
| 71 | + - sqlclosecheck |
| 72 | + - staticcheck |
| 73 | + - stylecheck |
| 74 | + - tagliatelle |
| 75 | + - testifylint |
| 76 | + - typecheck |
| 77 | + - unconvert |
| 78 | + - unparam |
| 79 | + - unused |
| 80 | + - usestdlibvars |
| 81 | + - wastedassign |
| 82 | + - whitespace |
| 83 | +linters-settings: |
| 84 | + decorder: |
| 85 | + dec-order: [const, var, type, func] |
| 86 | + depguard: |
| 87 | + rules: |
| 88 | + logger: |
| 89 | + deny: |
| 90 | + - desc: logging is allowed only by logutils.Log. |
| 91 | + pkg: github.com/sirupsen/logrus |
| 92 | + - desc: Should be replaced by standard lib errors package. |
| 93 | + pkg: github.com/pkg/errors |
| 94 | + dupl: |
| 95 | + threshold: 100 |
| 96 | + errorlint: |
| 97 | + asserts: false |
| 98 | + funlen: |
| 99 | + lines: 250 |
| 100 | + statements: 60 |
| 101 | + goconst: |
| 102 | + min-len: 2 |
| 103 | + min-occurrences: 4 |
| 104 | + gocritic: |
| 105 | + disabled-checks: |
| 106 | + - dupImport |
| 107 | + enabled-tags: |
| 108 | + - diagnostic |
| 109 | + - experimental |
| 110 | + - opinionated |
| 111 | + - performance |
| 112 | + - style |
| 113 | + gocyclo: |
| 114 | + min-complexity: 20 |
| 115 | + godox: |
| 116 | + keywords: |
| 117 | + - FIXME |
| 118 | + - TODO |
| 119 | + gofumpt: |
| 120 | + extra-rules: true |
| 121 | + module-path: ablibrary.net |
| 122 | + gosec: |
| 123 | + excludes: |
| 124 | + - G306 |
| 125 | + - G307 |
| 126 | + govet: |
| 127 | + disable: |
| 128 | + - fieldalignment |
| 129 | + - loopclosure |
| 130 | + - shadow |
| 131 | + enable-all: true |
| 132 | + importas: |
| 133 | + alias: |
| 134 | + - alias: pter |
| 135 | + pkg: ablibrary.net/internal/grpc/adapters |
| 136 | + - alias: eter |
| 137 | + pkg: ablibrary.net/internal/ent/adapters |
| 138 | + lll: |
| 139 | + line-length: 200 |
| 140 | + misspell: |
| 141 | + locale: US |
| 142 | + mnd: |
| 143 | + checks: [argument, case, condition, return] |
| 144 | + ignored-functions: |
| 145 | + - (.*).IntRange |
| 146 | + - helpers.Chance |
| 147 | + - int |
| 148 | + - int16 |
| 149 | + - int32 |
| 150 | + - int64 |
| 151 | + - int8 |
| 152 | + - make |
| 153 | + - rune |
| 154 | + - strings.SplitN |
| 155 | + - uint |
| 156 | + - uint16 |
| 157 | + - uint32 |
| 158 | + - uint64 |
| 159 | + - uint8 |
| 160 | + ignored-numbers: |
| 161 | + - '0' |
| 162 | + - '0o400' |
| 163 | + - '0o600' |
| 164 | + - '0o644' |
| 165 | + - '0o755' |
| 166 | + - '1' |
| 167 | + - '1e3' |
| 168 | + - '1e6' |
| 169 | + - '1e9' |
| 170 | + - '2' |
| 171 | + - '3' |
| 172 | + - '4' |
| 173 | + - '5' |
| 174 | + nolintlint: |
| 175 | + allow-unused: false |
| 176 | + require-explanation: true |
| 177 | + require-specific: true |
| 178 | + revive: |
| 179 | + rules: |
| 180 | + - arguments: |
| 181 | + - 4 |
| 182 | + name: argument-limit |
| 183 | + - name: atomic |
| 184 | + - name: confusing-naming |
| 185 | + - name: confusing-results |
| 186 | + - name: constant-logical-expr |
| 187 | + - name: context-as-argument |
| 188 | + - name: context-keys-type |
| 189 | + - name: datarace |
| 190 | + - name: deep-exit |
| 191 | + - name: defer |
| 192 | + - name: duplicated-imports |
| 193 | + - name: early-return |
| 194 | + - disabled: true |
| 195 | + name: enforce-repeated-arg-type-style |
| 196 | + - arguments: |
| 197 | + - make |
| 198 | + name: enforce-map-style |
| 199 | + - name: error-return |
| 200 | + - name: error-naming |
| 201 | + - name: error-strings |
| 202 | + - name: errorf |
| 203 | + - arguments: |
| 204 | + - 3 |
| 205 | + name: function-result-limit |
| 206 | + - name: get-return |
| 207 | + - name: identical-branches |
| 208 | + - name: if-return |
| 209 | + - name: import-shadowing |
| 210 | + - name: increment-decrement |
| 211 | + - name: indent-error-flow |
| 212 | + - arguments: |
| 213 | + - 4 |
| 214 | + name: max-control-nesting |
| 215 | + - name: modifies-value-receiver |
| 216 | + - name: optimize-operands-order |
| 217 | + - name: range-val-address |
| 218 | + - name: receiver-naming |
| 219 | + - name: redundant-import-alias |
| 220 | + - name: string-of-int |
| 221 | + - name: superfluous-else |
| 222 | + - name: time-equal |
| 223 | + - name: time-naming |
| 224 | + - name: unchecked-type-assertion |
| 225 | + - name: unconditional-recursion |
| 226 | + - disabled: true |
| 227 | + name: unexported-return |
| 228 | + - name: unnecessary-stmt |
| 229 | + - name: unreachable-code |
| 230 | + - name: unused-parameter |
| 231 | + - disabled: true |
| 232 | + name: unused-receiver |
| 233 | + - name: use-any |
| 234 | + - name: waitgroup-by-value |
| 235 | + tagliatelle: |
| 236 | + case: |
| 237 | + rules: |
| 238 | + json: snake |
0 commit comments