-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
.golangci.yml
43 lines (42 loc) · 846 Bytes
/
.golangci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
linters:
enable:
- asciicheck
- bidichk
- containedctx
- contextcheck
- gocognit
- decorder
- dupl
- durationcheck
- errchkjson
- errname
- errorlint
- funlen
- goimports
- gci
- goconst
- gofumpt
- gosec
- lll
- misspell
- revive
- unconvert
- gosec
linters-settings:
errcheck:
# report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`.
check-blank: true
gosimple:
# Select the Go version to target.
go: "1.17"
# https://staticcheck.io/docs/options#checks
checks: ["all"]
govet:
check-shadowing: true
staticcheck:
go: "1.17"
# https://staticcheck.io/docs/options#checks
checks: ["all"]
decorder:
disable-dec-order-check: false
disable-init-func-first-check: false