-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.golangci.yml
96 lines (83 loc) · 1.68 KB
/
.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
# This file contains only configs which differ from defaults.
# All possible options can be found here
# https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml
run:
timeout: 10s
concurrency: 4
tests: false
skip-dirs:
- api/m3uetcpb
linters-settings:
cyclop:
max-complexity: 30
package-average: 10.0
skip-tests: true
errcheck:
check-type-assertions: false
check-blank: false
godot:
exclude:
# Exclude commented imports
- "^ \""
# Exclude todo-like comments.
- "^ BUG:"
- "^ CHANGED:"
- "^ FIXME:"
- "^ HACK:"
- "^ IDEA:"
- "^ INFO:"
- "^ NOTE:"
- "^ REVIEW:"
- "^ TRICKY:"
- "^ TODO:"
- "^ XXX:"
gosimple:
checks:
- all
- '-S1000'
- '-S1038'
govet:
check-shadowing: false
# Run `go tool vet help` to see all analyzers.
disable:
- fieldalignment
- stdmethods
nolintlint:
require-explanation: true
require-specific: true
revive:
rules:
- name: package-comments
disabled: true
# severity: warning
confidence: 0.8
staticcheck:
checks:
- all
# - '-SA1019' # deprecations
linters:
disable-all: true
enable:
## enabled by default
# - errcheck # too annoying, ignores settings above
- gosimple
- govet
# - ineffassign # many false positives
- staticcheck
- typecheck
- unused
## disabled by default
- bodyclose
# - cyclop
- godot
- misspell
- nolintlint
- revive
- unconvert
issues:
exclude-use-default: false
exclude-rules:
- path: _test\.go
linters:
- bodyclose