Skip to content

Commit f6b5a47

Browse files
committed
chore: add golangci-lint config
1 parent d8a1d4a commit f6b5a47

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

.golangci.yml

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
---
2+
linters:
3+
disable-all: true
4+
enable:
5+
- asasalint
6+
- bidichk
7+
- bodyclose
8+
- contextcheck
9+
- durationcheck
10+
- errcheck
11+
- errchkjson
12+
- errorlint
13+
- exhaustive
14+
- gocheckcompilerdirectives
15+
- gochecksumtype
16+
- gosec
17+
- gosimple
18+
- govet
19+
- ineffassign
20+
- makezero
21+
- nilerr
22+
- reassign
23+
- recvcheck
24+
- spancheck
25+
- staticcheck
26+
- thelper
27+
- unparam
28+
- unused
29+
- usetesting
30+
linters-settings:
31+
errcheck:
32+
check-type-assertions: true
33+
check-blank: true
34+
disable-default-exclusions: false
35+
govet:
36+
disable-all: true
37+
enable:
38+
- appends
39+
- asmdecl
40+
- assign
41+
- atomic
42+
- atomicalign
43+
- bools
44+
- buildtag
45+
- cgocall
46+
- composites
47+
- copylocks
48+
- deepequalerrors
49+
- defers
50+
- directive
51+
- errorsas
52+
- fieldalignment
53+
- findcall
54+
- framepointer
55+
- httpresponse
56+
- ifaceassert
57+
- loopclosure
58+
- lostcancel
59+
- nilfunc
60+
- nilness
61+
- printf
62+
- reflectvaluecompare
63+
- shadow
64+
- shift
65+
- sigchanyzer
66+
- slog
67+
- sortslice
68+
- stdmethods
69+
- stdversion
70+
- stringintconv
71+
- structtag
72+
- testinggoroutine
73+
- tests
74+
- timeformat
75+
- unmarshal
76+
- unreachable
77+
- unsafeptr
78+
- unusedresult
79+
- unusedwrite
80+
- waitgroup

0 commit comments

Comments
 (0)