-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.golangci.yml
51 lines (49 loc) · 1.1 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
run:
concurrency: 0
allow-parallel-runners: true
allow-serial-runners: true
tests: false
go: '1.24'
linters:
enable-all: true
disable:
- goimports # Not needed
- depguard # Not needed
- gci # Encountering issues
- gofmt # Replaced by gofumpt
- nlreturn # Not needed
- wsl # Too strict
- wrapcheck # Not needed
- ireturn # Configuration is bugged
- bodyclose # Lots of false positives
- forcetypeassert # Not needed
- mnd # Not needed
- exhaustruct # Not needed
- cyclop # Not needed
- dupl # Not needed
- varnamelen # Not needed
- nonamedreturns # Not needed
- iface # Not needed
- godot # Not needed
- forbidigo # Not needed
- gochecknoinits # Not needed
- gochecknoglobals # Not needed
- tenv # Deprecated
linters-settings:
lll:
line-length: 205
funlen:
lines: 130
statements: 55
gocritic:
disabled-checks:
- singleCaseSwitch
gocognit:
min-complexity: 35
goconst:
min-len: 4
nestif:
min-complexity: 8
gosec:
excludes:
- G404 # Insecure random number source (rand)