forked from IBM/fluent-forward-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
43 lines (43 loc) · 887 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
run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 3m
linters:
# enable some additional (non-default) linters
enable:
- revive
- bodyclose
- exportloopref
- gocognit
- goconst
- gofmt
- gosec
- misspell
- nakedret
- unconvert
- unparam
- wsl
issues:
exclude-rules:
# exclude some linters from running on tests files.
- path: _test\.go
linters:
- errcheck
- exportloopref
- gocognit
- goconst
- gosec
- unparam
- wsl
- revive
- path: '(.+)_test.go'
linters:
- revive
text: "dot-imports: should not use dot imports"
# maximum count of issues with the same text. set to 0 to disable. default is 3.
max-same-issues: 0
linters-settings:
goconst:
min-len: 2
min-occurrences: 5
misspell:
locale: US