-
Notifications
You must be signed in to change notification settings - Fork 46
/
.golangci.yml
52 lines (47 loc) · 835 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
51
52
run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
deadline: 30s
# exit code when at least one issue was found, default is 1
issues-exit-code: 1
# include test files or not, default is true
tests: true
# all available settings of specific linters
linters-settings:
gocyclo:
min-complexity: 20
maligned:
suggest-new: true
dupl:
threshold: 100
goconst:
min-len: 3
min-occurrences: 2
depguard:
lll:
line-length: 160
nakedret:
max-func-lines: 10
linters:
enable:
- exportloopref
- megacheck
- govet
- gosec
- unconvert
- goconst
- gocyclo
- gofmt
- lll
- revive
- unparam
- nakedret
- misspell
disable:
- exhaustive
enable-all: false
disable-all: false
presets:
- bugs
- unused
fast: false
issues: