-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.golangci.yml
45 lines (43 loc) · 904 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
run:
path: ./...
deadline: 5m
skip-dirs:
- vendor
- proto
- test
skip-files:
- ".*\\_test\\.go$"
- ".*\\_string\\.go$"
- "pkg/response/actions/k8s/control.go"
- "pkg/response/actions/k8s/search.go"
linters-settings:
lll:
line-length: 170
dupl:
threshold: 400
issues:
# don't skip warning about doc comments
exclude-use-default: false
# restore some of the defaults
# (fill in the rest as needed)
exclude-rules:
- linters: [errcheck]
text: "Error return value of .((os\\.)?std(out|err)\\..*|.*Close|.*Flush|os\\.Remove(All)?|.*printf?|os\\.(Un)?Setenv). is not checked"
linters:
disable-all: true
enable:
- misspell
# - structcheck
# - golint
- govet
# - deadcode
- errcheck
# - varcheck
- goconst
- unparam
- ineffassign
- nakedret
- gocyclo
- lll
- dupl
- goimports