-
Notifications
You must be signed in to change notification settings - Fork 2
/
.golangci.toml
72 lines (61 loc) · 1.21 KB
/
.golangci.toml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[issues]
exclude = [
# goconst: Ignore for example/test data
'string `(foo|bar|baz|qux)` has \d+ occurrences',
# golint: false positives for multi-file packages
'should have a package comment',
# gosec: Duplicate of errcheck
'G104: Errors unhandled',
# gosec: Allow file inclusions
'G304: Potential file inclusion via variable',
]
exclude-use-default = false
[[issues.exclude-rules]]
path = '_test\.go'
linters = [
"dupl",
"gocyclo",
"gocognit",
"gosec",
]
[linters]
enable = [
"bodyclose",
"golint",
"stylecheck",
"gosec",
"interfacer",
"unconvert",
"dupl",
"goconst",
"gocyclo",
"gocognit",
"gofmt",
"goimports",
"lll",
"misspell",
"unparam",
"nakedret",
"prealloc",
"gocritic",
"gochecknoinits",
"whitespace",
]
[linters-settings]
[linters-settings.goconst]
min-len = 0
min-occurrences = 3
[linters-settings.gocognit]
min-complexity = 15
[linters-settings.gocyclo]
min-complexity = 10
[linters-settings.gofmt]
simplify = true
[linters-settings.golint]
min-confidence = 0.0
[linters-settings.govet]
check-shadowing = true
[linters-settings.misspell]
locale = "US"
[linters-settings.nakedret]
max-func-lines = 0