forked from SumoLogic/sumologic-otel-collector
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.golangci.yaml
47 lines (40 loc) · 984 Bytes
/
.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
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
- errcheck
- goimports
- misspell
- noctx
- lll
- govet
- ineffassign
- typecheck
- 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