-
Notifications
You must be signed in to change notification settings - Fork 10
/
.golangci.yml
77 lines (73 loc) · 1.43 KB
/
.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
run:
deadline: 10m10s
modules-download-mode: vendor
go: 1.17 # 1.18 disabled some linters as they don't support generics yet, as such lock to 1.17 until they do
issues:
max-per-linter: 0
max-same-issues: 0
linters:
disable-all: true
enable:
- asasalint
- asciicheck
- bidichk
- containedctx
- contextcheck
- deadcode
- decorder
- durationcheck
- errchkjson
- errname
- errcheck
- errorlint
- exhaustive
- exportloopref
- gocritic
- gofmt
- gofumpt
- goimports
- gosimple
- govet
- gosec
- ineffassign
- ifshort
- nakedret
- nilerr
- nilnil
- nlreturn
- nolintlint
- noctx
- makezero
- misspell
#- paralleltest
- prealloc
- predeclared
- staticcheck
- structcheck
- stylecheck
- revive
- typecheck
- unused
- unconvert
- unparam
- varcheck
- vet
- vetshadow
- wastedassign
- whitespace
# - wsl #linter configuration is still quite not flexible enough for my liking, leaving disabled for now
linters-settings:
errcheck:
ignore: io:Close
misspell:
locale: uk
nlreturn:
block-size: 4
wsl:
allow-assign-and-anything: true
allow-separated-leading-comment: true
allow-trailing-comment: true
allow-cuddle-declarations: true
allow-multiline-assign: true
force-case-trailing-whitespace: 1
enforce-err-cuddling: true