|
| 1 | +# See https://golangci-lint.run/usage/configuration/ |
| 2 | + |
| 3 | +linters-settings: |
| 4 | + revive: |
| 5 | + # see https://github.com/mgechev/revive#available-rules for details. |
| 6 | + ignore-generated-header: true |
| 7 | + severity: warning |
| 8 | + rules: |
| 9 | + - name: atomic |
| 10 | + # - name: bare-return |
| 11 | + - name: blank-imports |
| 12 | + - name: bool-literal-in-expr |
| 13 | + - name: call-to-gc |
| 14 | + - name: confusing-naming |
| 15 | + - name: confusing-results |
| 16 | + - name: constant-logical-expr |
| 17 | + - name: context-as-argument |
| 18 | + - name: context-keys-type |
| 19 | + - name: deep-exit |
| 20 | + - name: defer |
| 21 | + - name: dot-imports |
| 22 | + - name: duplicated-imports |
| 23 | + - name: early-return |
| 24 | + - name: empty-block |
| 25 | + - name: empty-lines |
| 26 | + - name: error-naming |
| 27 | + - name: error-return |
| 28 | + - name: error-strings |
| 29 | + - name: errorf |
| 30 | + - name: exported |
| 31 | + # - name: flag-parameter |
| 32 | + - name: get-return |
| 33 | + - name: identical-branches |
| 34 | + - name: if-return |
| 35 | + - name: import-shadowing |
| 36 | + - name: increment-decrement |
| 37 | + - name: indent-error-flow |
| 38 | + - name: modifies-parameter |
| 39 | + - name: modifies-value-receiver |
| 40 | + - name: package-comments |
| 41 | + - name: range |
| 42 | + - name: range-val-address |
| 43 | + - name: range-val-in-closure |
| 44 | + - name: receiver-naming |
| 45 | + - name: redefines-builtin-id |
| 46 | + - name: string-of-int |
| 47 | + - name: struct-tag |
| 48 | + - name: superfluous-else |
| 49 | + - name: time-naming |
| 50 | + - name: unconditional-recursion |
| 51 | + - name: unexported-naming |
| 52 | + - name: unexported-return |
| 53 | + # - name: unhandled-error |
| 54 | + - name: unnecessary-stmt |
| 55 | + - name: unreachable-code |
| 56 | + - name: unused-parameter |
| 57 | + # - name: unused-receiver |
| 58 | + - name: var-declaration |
| 59 | + - name: var-naming |
| 60 | + - name: waitgroup-by-value |
| 61 | + |
1 | 62 | linters:
|
2 | 63 | disable-all: true
|
3 | 64 | enable:
|
| 65 | + - asciicheck |
4 | 66 | - bodyclose
|
| 67 | + # - cyclop |
5 | 68 | - deadcode
|
6 |
| - - depguard |
7 | 69 | - dogsled
|
8 | 70 | - dupl
|
| 71 | + - durationcheck |
9 | 72 | - errcheck
|
10 |
| - - exportloopref |
| 73 | + - errorlint |
11 | 74 | - exhaustive
|
| 75 | + # - exhaustivestruct |
| 76 | + - exportloopref |
| 77 | + # - forbidigo |
| 78 | + - forcetypeassert |
12 | 79 | - funlen
|
| 80 | + # - gci |
| 81 | + # - gochecknoglobals |
13 | 82 | - gochecknoinits
|
| 83 | + - gocognit |
14 | 84 | - goconst
|
15 | 85 | - gocritic
|
16 | 86 | - gocyclo
|
17 |
| - - gofmt |
| 87 | + - godot |
| 88 | + - godox |
| 89 | + - goerr113 |
18 | 90 | - goimports
|
19 |
| - - golint |
20 | 91 | - gomnd
|
| 92 | + - gomoddirectives |
| 93 | + - gomodguard |
21 | 94 | - goprintffuncname
|
22 | 95 | - gosec
|
23 | 96 | - gosimple
|
24 | 97 | - govet
|
| 98 | + # - ifshort |
| 99 | + - importas |
25 | 100 | - ineffassign
|
26 | 101 | - lll
|
| 102 | + - makezero |
27 | 103 | - misspell
|
28 | 104 | - nakedret
|
| 105 | + - nestif |
| 106 | + - nilerr |
| 107 | + # - nlreturn |
29 | 108 | - noctx
|
30 | 109 | - nolintlint
|
| 110 | + # - paralleltest |
| 111 | + - prealloc |
| 112 | + - predeclared |
| 113 | + # - promlinter |
| 114 | + - revive |
31 | 115 | - rowserrcheck
|
| 116 | + - sqlclosecheck |
32 | 117 | - staticcheck
|
33 | 118 | - structcheck
|
34 | 119 | - stylecheck
|
35 |
| - # - typecheck |
| 120 | + # - tagliatelle |
| 121 | + - testpackage |
| 122 | + - thelper |
| 123 | + - tparallel |
| 124 | + - typecheck |
36 | 125 | - unconvert
|
37 | 126 | - unparam
|
38 | 127 | - unused
|
39 | 128 | - varcheck
|
| 129 | + # - wastedassign |
40 | 130 | - whitespace
|
| 131 | + # - wrapcheck |
| 132 | + - wsl |
0 commit comments