-
Notifications
You must be signed in to change notification settings - Fork 4
/
.golangci.yaml
44 lines (39 loc) · 959 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
---
run:
go: '1.22'
timeout: 10m
allow-parallel-runners: true
linters-settings:
errcheck:
check-type-assertions: false
check-blank: true
maligned:
# print struct with more effective memory layout or not, false by default
suggest-new: true
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
- gosec
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