-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.golangci.yml
50 lines (48 loc) · 992 Bytes
/
.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
run:
timeout: 10m
linters:
# TODO: fix errors so that all of the linters below pass.
# The linters that are commented out, as well as those explicitly disabled,
# are currently failing. We should fix those failures or define exclusion
# rules, and then enable those linters.
disable-all: true
enable:
- deadcode
- gosimple
- govet
- ineffassign
- unused
- varcheck
- staticcheck
- dogsled
- gofmt
- goimports
# - gosec
- misspell
- nakedret
- stylecheck
- structcheck
- golint
- unconvert
- unparam
- whitespace
# - gofumpt
# disable:
# - errcheck
issues:
exclude-rules:
- linters:
- dogsled
text: "declaration has 3 blank identifiers"
path: _test\.go
- linters:
- dupl
path: _test\.go
linters-settings:
gofmt:
simplify: true
dupl:
# tokens count to trigger issue, 150 by default
threshold: 400
errcheck:
check-blank: false