| 1 |
version: "2" |
| 2 |
|
| 3 |
run: |
| 4 |
tests: false |
| 5 |
|
| 6 |
linters: |
| 7 |
default: all |
| 8 |
disable: |
| 9 |
- containedctx |
| 10 |
- cyclop |
| 11 |
- depguard |
| 12 |
- dogsled |
| 13 |
- dupl |
| 14 |
- embeddedstructfieldcheck |
| 15 |
- err113 |
| 16 |
- errorlint |
| 17 |
- exhaustive |
| 18 |
- exhaustruct |
| 19 |
- exhaustruct_v5 |
| 20 |
- forbidigo |
| 21 |
- forcetypeassert |
| 22 |
- funcorder |
| 23 |
- funlen |
| 24 |
- gochecknoglobals |
| 25 |
- gochecknoinits |
| 26 |
- gocognit |
| 27 |
- goconst |
| 28 |
- gocritic |
| 29 |
- gocyclo |
| 30 |
- godoclint |
| 31 |
- godot |
| 32 |
- godox |
| 33 |
- gomodguard |
| 34 |
- gosec |
| 35 |
- govet |
| 36 |
- inamedparam |
| 37 |
- intrange |
| 38 |
- ireturn |
| 39 |
- lll |
| 40 |
- makezero |
| 41 |
- mnd |
| 42 |
- modernize |
| 43 |
- nakedret |
| 44 |
- nestif |
| 45 |
- nilnil |
| 46 |
- nlreturn |
| 47 |
- noinlineerr |
| 48 |
- paralleltest |
| 49 |
- perfsprint |
| 50 |
- revive |
| 51 |
- testpackage |
| 52 |
- thelper |
| 53 |
- varnamelen |
| 54 |
- wrapcheck |
| 55 |
- wsl |
| 56 |
- wsl_v5 |
| 57 |
settings: |
| 58 |
govet: |
| 59 |
enable-all: true |
| 60 |
disable: |
| 61 |
- shadow |
| 62 |
staticcheck: |
| 63 |
checks: |
| 64 |
- all |
| 65 |
# quickfix suggestions are not defects |
| 66 |
- -QF* |
| 67 |
exclusions: |
| 68 |
generated: lax |
| 69 |
presets: |
| 70 |
- comments |
| 71 |
- common-false-positives |
| 72 |
- legacy |
| 73 |
- std-error-handling |
| 74 |
rules: |
| 75 |
# not needed |
| 76 |
- linters: |
| 77 |
- staticcheck |
| 78 |
text: "ST1003: should not use underscores in package names" |
| 79 |
- linters: |
| 80 |
- staticcheck |
| 81 |
path: rtype.go |
| 82 |
- linters: |
| 83 |
- staticcheck |
| 84 |
path: error.go |
| 85 |
paths: |
| 86 |
- encode_optype.go |
| 87 |
|
| 88 |
formatters: |
| 89 |
enable: |
| 90 |
- gofmt |
| 91 |
- goimports |
| 92 |
exclusions: |
| 93 |
generated: lax |
| 94 |
paths: |
| 95 |
- encode_optype.go |
| 96 |
|
| 97 |
issues: |
| 98 |
# Maximum issues count per one linter. Set to 0 to disable. Default is 50. |
| 99 |
max-issues-per-linter: 0 |
| 100 |
|
| 101 |
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3. |
| 102 |
max-same-issues: 0 |