forked from SumoLogic/sumologic-otel-collector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
51 lines (44 loc) · 1.11 KB
/
.golangci.yaml
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
run:
timeout: 10m
allow-parallel-runners: true
linters-settings:
errcheck:
check-type-assertions: false
check-blank: true
gosimple:
go: "1.18"
maligned:
# print struct with more effective memory layout or not, false by default
suggest-new: true
unused:
go: "1.18"
lll:
# max line length, lines longer will be reported. Default is 120.
# '\t' is counted as 1 character by default, and can be changed with the tab-width option
line-length: 185
# tab width in spaces. Default to 1.
tab-width: 8
linters:
disable-all: true
enable:
- gofmt
- deadcode
- errcheck
- goimports
- misspell
- noctx
- lll
- govet
- ineffassign
- structcheck
- typecheck
- varcheck
# These linters are problematic when using go1.18 and generic code like in golang.org/x/exp/slices
# - unused
# - gosimple
# - staticcheck
issues:
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
max-same-issues: 0