|
11 | 11 | "bodyclose", |
12 | 12 | "containedctx", |
13 | 13 | "contextcheck", |
14 | | - "deadcode", |
15 | 14 | "depguard", |
16 | 15 | "durationcheck", |
17 | 16 | "errcheck", |
|
43 | 42 | "nosprintfhostport", |
44 | 43 | "predeclared", |
45 | 44 | "revive", |
46 | | - "rowserrcheck", |
47 | 45 | "sqlclosecheck", |
48 | 46 | "staticcheck", |
49 | | - "structcheck", |
50 | 47 | "stylecheck", |
51 | 48 | "tenv", |
52 | 49 | "tparallel", |
53 | 50 | "typecheck", |
54 | 51 | "unconvert", |
55 | 52 | "unparam", |
56 | 53 | "unused", |
57 | | - "varcheck", |
58 | 54 | "vetshadow", |
59 | | - "wastedassign", |
60 | | - ] |
61 | | - |
62 | | -# Please note that we only use depguard for stdlib as gomodguard only |
63 | | -# supports modules currently. See https://github.com/ryancurrah/gomodguard/issues/12 |
64 | | -[linters-settings.depguard] |
65 | | - list-type = "blacklist" |
66 | | - include-go-root = true |
67 | | - packages = [ |
68 | | - # ioutil is deprecated. The functions have been moved elsewhere: |
69 | | - # https://golang.org/doc/go1.16#ioutil |
70 | | - "io/ioutil", |
71 | 55 | ] |
72 | 56 |
|
73 | 57 | [linters-settings.errcheck] |
74 | | - # Don't allow setting of error to the blank identifier. If there is a legtimate |
75 | | - # reason, there should be a nolint with an explanation. |
76 | | - check-blank = true |
77 | | - |
78 | | - exclude-functions = [ |
79 | | - # If we are rolling back a transaction, we are often already in an error |
80 | | - # state. |
81 | | - '(*database/sql.Tx).Rollback', |
82 | | - |
83 | | - # It is reasonable to ignore errors if Cleanup fails in most cases. |
84 | | - '(*github.com/google/renameio/v2.PendingFile).Cleanup', |
85 | | - |
86 | | - # We often don't care if removing a file failed (e.g., it doesn't exist) |
87 | | - 'os.Remove', |
88 | | - 'os.RemoveAll', |
89 | | - ] |
90 | | - |
91 | 58 | # Ignoring Close so that we don't have to have a bunch of |
92 | 59 | # `defer func() { _ = r.Close() }()` constructs when we |
93 | 60 | # don't actually care about the error. |
|
101 | 68 | [linters-settings.exhaustive] |
102 | 69 | default-signifies-exhaustive = true |
103 | 70 |
|
104 | | -[linters-settings.forbidigo] |
105 | | - # Forbid the following identifiers |
106 | | - forbid = [ |
107 | | - "^minFraud*", |
108 | | - "^maxMind*", |
109 | | - ] |
110 | | - |
111 | 71 | [linters-settings.gocritic] |
112 | 72 | enabled-checks = [ |
113 | 73 | "appendAssign", |
|
227 | 187 |
|
228 | 188 | [linters-settings.gofumpt] |
229 | 189 | extra-rules = true |
230 | | - lang-version = "1.18" |
| 190 | + lang-version = "1.19" |
231 | 191 |
|
232 | 192 | [linters-settings.govet] |
233 | 193 | "enable-all" = true |
|
293 | 253 | # [[linters-settings.revive.rules]] |
294 | 254 | # name = "cyclomatic" |
295 | 255 |
|
296 | | - # [[linters-settings.revive.rules]] |
297 | | - # name = "deep-exit" |
298 | | - |
299 | 256 | [[linters-settings.revive.rules]] |
300 | 257 | name = "defer" |
301 | 258 |
|
|
0 commit comments