-
Notifications
You must be signed in to change notification settings - Fork 11
/
.golangci.yaml
26 lines (26 loc) · 725 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
linters:
enable-all: true
disable:
- exhaustruct # Disallows to left unused fields in structs
- wrapcheck # Disallows to use non-wrapped errors
- gochecknoinits # Disallows to use init functions
- ireturn # Disallows to return Interfaces
- gci # Disable gci import ordering checker since its buggy
- forcetypeassert # Disallows to use type assertions without checking
- depguard # Disallows to use non-listed packages
- gochecknoglobals # We like global variables
- tagalign # Buggy
- lll
- funlen
- perfsprint
- contextcheck
linters-settings:
cyclop:
max-complexity: 12
run:
go: '1.22'
timeout: 10m
tests: false
issues:
exclude-dirs:
- cmd/benchmark