Skip to content

Commit 629da96

Browse files
committed
Update golangci-lint conifg
1 parent f66d066 commit 629da96

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

.golangci.toml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,48 @@
55
[linters]
66
disable-all = true
77
enable = [
8+
"bodyclose",
89
"deadcode",
910
"depguard",
1011
"errcheck",
12+
"exportloopref",
1113
"goconst",
1214
"gocyclo",
1315
"gocritic",
14-
"gofmt",
16+
"gofumpt",
1517
"golint",
1618
"gosec",
1719
"gosimple",
20+
"govet",
1821
"ineffassign",
1922
"maligned",
2023
"misspell",
2124
"nakedret",
25+
"noctx",
26+
"nolintlint",
27+
"sqlclosecheck",
2228
"staticcheck",
2329
"structcheck",
30+
"stylecheck",
2431
"typecheck",
2532
"unconvert",
2633
"unparam",
34+
"unused",
2735
"varcheck",
28-
"vet",
2936
"vetshadow",
3037
]
38+
39+
[linters-settings.gofumpt]
40+
extra-rules = true
41+
42+
[issues]
43+
exclude-use-default = false
44+
45+
[[issues.exclude-rules]]
46+
linters = [
47+
"gosec"
48+
]
49+
50+
# G404 - "Use of weak random number generator (math/rand instead of crypto/rand)"
51+
# We only use this in tests.
52+
text = "G404"

0 commit comments

Comments
 (0)