-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.golangci.yml
46 lines (46 loc) · 879 Bytes
/
.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
linters:
enable:
- gofmt
- stylecheck
- errorlint
- exhaustive
- makezero
- nakedret
- predeclared
- unconvert
- exportloopref
- asasalint
- asciicheck
- bidichk
- bodyclose
- durationcheck
- errname
- misspell
- nilerr
- reassign
- usestdlibvars
run:
timeout: 5m
issues:
exclude:
# stylecheck warns us about underscores in package names and var names, let's ignore that for now
# - should not use underscores in package names
# - should not use underscores in Go names
linters-settings:
govet:
enable-all: true
disable:
- fieldalignment
- shadow
# disable-all: false
staticcheck:
go: '1.19'
checks: ['all']
gosimple:
go: '1.19'
checks: ['all']
exhaustive:
default-signifies-exhaustive: true
stylecheck:
checks:
- ST1003