-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yaml
More file actions
119 lines (119 loc) · 2.11 KB
/
.golangci.yaml
File metadata and controls
119 lines (119 loc) · 2.11 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
version: "2"
run:
modules-download-mode: readonly
issues-exit-code: 1
tests: true
linters:
enable:
- asciicheck
- bodyclose
- durationcheck
- errorlint
- exhaustive
- forcetypeassert
- funlen
- goconst
- gocyclo
- godot
- gosec
- lll
- misspell
- nakedret
- nestif
- noctx
- prealloc
- predeclared
- revive
- staticcheck
- unconvert
- unparam
- whitespace
disable:
- depguard
- dupl
- unused
- wastedassign
settings:
dupl:
threshold: 150
errcheck:
disable-default-exclusions: false
check-type-assertions: true
check-blank: false
exclude-functions:
- (io.Closer).Close
- (net/http.ResponseWriter).Write
- (strings.Builder).WriteByte
- (strings.Builder).WriteString
exhaustive:
default-signifies-exhaustive: true
funlen:
lines: 90
statements: 70
goconst:
min-len: 3
min-occurrences: 5
gocyclo:
min-complexity: 18
govet:
enable:
- atomic
- atomicalign
- buildtag
- cgocall
- composites
- copylocks
- httpresponse
- loopclosure
- lostcancel
- nilfunc
- shift
- structtag
- unmarshal
- unreachable
- unusedresult
- tests
lll:
line-length: 120
tab-width: 2
misspell:
locale: US
nakedret:
max-func-lines: 40
prealloc:
simple: true
range-loops: true
for-loops: false
exclusions:
generated: lax
rules:
- linters:
- dupl
- errcheck
- funlen
- gocyclo
- gosec
- lll
- nakedret
- nestif
- noctx
- revive
path: (.+)_test.go
paths:
- crypto/vrf/*
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
settings:
gofmt:
simplify: true
exclusions:
generated: lax
paths:
- crypto/vrf/*
- third_party$
- builtin$
- examples$