-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.golangci.yaml
More file actions
83 lines (70 loc) · 1.41 KB
/
.golangci.yaml
File metadata and controls
83 lines (70 loc) · 1.41 KB
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
77
78
79
80
81
82
83
---
# golangci.com configuration
# https://github.com/golangci/golangci/wiki/Configuration
version: "2"
linters:
default: all
# explicitly disabled linters
disable:
- containedctx
- contextcheck
- cyclop
- depguard
- errcheck
- exhaustruct
- exhaustive
- forbidigo
- gomodguard # no go.mod at root level
- gochecknoglobals # no configuration options
- nilnil
- nlreturn # redundant with wsl
- paralleltest
- revive
- tagalign
- thelper
- varnamelen
- wrapcheck
settings:
cyclop:
max-complexity: 12
errcheck:
exclude-functions:
- fmt.Fprint
- fmt.Fprintf
- fmt.Fprintln
- os.Close
funlen:
lines: 80
statements: 60
ignore-comments: true
gomoddirectives:
replace-local: true
gosec:
excludes:
- G104 # Errors unhandled
- G304 # Potential file inclusion via variable (see https://github.com/golang/go/issues/67002)
ireturn:
allow:
- error
- empty
- stdlib
- generic
- proto.Message
- v3.ImporterClient
lll:
line-length: 150
recvcheck:
exclusions:
- "*.Map"
tagliatelle:
case:
rules:
json: snake
yaml: snake
exclusions:
generated: lax
formatters:
enable:
- gofmt
- gofumpt
- goimports