-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
55 lines (51 loc) · 843 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
53
54
run:
# 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: false
# all available settings of specific linters
linters-settings:
funlen:
lines: 120
statements: 65
gocyclo:
min-complexity: 40
dupl:
threshold: 100
goconst:
min-len: 3
min-occurrences: 3
depguard:
lll:
line-length: 150
nakedret:
max-func-lines: 0
linters:
enable:
- asciicheck
- dogsled
- exportloopref
- funlen
- goconst
- gocritic
- gocyclo
- gofumpt
- goimports
- gosimple
- govet
- lll
- misspell
- nakedret
- prealloc
- revive
- staticcheck
- unconvert
- unparam
- unused
disable:
- gosec
- nilerr
presets:
- bugs
- unused
fast: false