-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yaml
More file actions
104 lines (97 loc) · 1.71 KB
/
.golangci.yaml
File metadata and controls
104 lines (97 loc) · 1.71 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
version: "2"
run:
modules-download-mode: readonly
linters:
default: none
enable:
- asasalint
- asciicheck
- bidichk
- bodyclose
- contextcheck
- depguard
- durationcheck
- errcheck
- errchkjson
- errorlint
- exhaustive
- funlen
- gocheckcompilerdirectives
- gochecksumtype
- gocognit
- gocyclo
- gomoddirectives
- gomodguard
- gosec
- gosmopolitan
- govet
- ineffassign
- loggercheck
- maintidx
- makezero
- musttag
- nestif
- nilerr
- nilnesserr
- noctx
- perfsprint
- prealloc
- reassign
- recvcheck
- rowserrcheck
- spancheck
- sqlclosecheck
- staticcheck
- testifylint
- unparam
- unused
- zerologlint
settings:
depguard:
rules:
main:
list-mode: lax
deny:
- pkg: errors
desc: Use github.com/pkg/error over the standard error package
funlen:
ignore-comments: true
lines: 80
statements: 60
gocognit:
min-complexity: 50
testifylint:
disable:
- go-require
exclusions:
generated: lax
paths:
- "examples/(.+).go$"
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
rules:
- linters:
- gomoddirectives
path: go.mod
- linters:
- funlen
path: (.+)main.go
- linters:
- tagalign
path: (.+).go
- linters:
- funlen
path: (.+)_test.go
- linters:
- errcheck
- gocognit
path: examples/(.+).go
formatters:
enable:
- gci
- gofmt
- gofumpt
- goimports