-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.golangci.yml
More file actions
44 lines (42 loc) · 783 Bytes
/
.golangci.yml
File metadata and controls
44 lines (42 loc) · 783 Bytes
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
version: "2"
linters:
enable:
- asasalint
- asciicheck
- bidichk
- contextcheck
- durationcheck
- errcheck
- errname
- errorlint
# configure it properly, see https://github.com/securego/gosec#available-rules
- gosec
- govet
- ineffassign
- misspell
- nakedret
- nilerr
- nilnil
- prealloc
- predeclared
- reassign
- revive
- rowserrcheck
- staticcheck
- tagliatelle
- testableexamples
- thelper
- tparallel
- unconvert
- unparam
- unused
- usestdlibvars
- wastedassign
exclusions:
rules:
# Exclude some linters from running on tests files.
- path: _test\.go
linters:
- gosec
- staticcheck
- thelper