-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy path.golangci.yml
More file actions
59 lines (55 loc) · 993 Bytes
/
.golangci.yml
File metadata and controls
59 lines (55 loc) · 993 Bytes
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
version: "2"
# from: github.com/uber-go/guide/blob/621006f/.golangci.yml
run:
# timeout: 5m
modules-download-mode: readonly
issues-exit-code: 0
tests: false
output:
show-stats: true
# print-issued-lines: true
# uniq-by-line: true
# sort-results: true
# print-linter-name: true
linters:
enable:
- errcheck
- errchkjson
- gosec
- gocyclo
- mnd
- loggercheck
- err113
- revive
- misspell
- govet
- goconst
- staticcheck
settings:
cyclop:
max-complexity: 5
package-average: 0.5
exclusions:
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
generated: disable
rules:
- path: '(.+)_test\.go'
linters:
- cyclop
- gocyclo
- misspell
- goconst
formatters:
enable:
- gci
- gofmt
- gofumpt
- goimports
issues:
max-issues-per-linter: 0
max-same-issues: 0
uniq-by-line: true