Skip to content

Commit a301c8e

Browse files
committed
Enabled more checks in golangci-lint
1 parent 914e11b commit a301c8e

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.golangci.yml

+45
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,51 @@ linters:
3333
#- protogetter
3434

3535
linters-settings:
36+
govet:
37+
# Enable analyzers by name.
38+
# Run `GL_DEBUG=govet golangci-lint run --enable=govet` to see default, all available analyzers, and enabled analyzers.
39+
enable:
40+
- appends
41+
- asmdecl
42+
- assign
43+
- atomic
44+
- atomicalign
45+
- bools
46+
- buildtag
47+
- cgocall
48+
- composites
49+
- copylocks
50+
- deepequalerrors
51+
- defers
52+
- directive
53+
- errorsas
54+
#- fieldalignment
55+
- findcall
56+
- framepointer
57+
- httpresponse
58+
- ifaceassert
59+
- loopclosure
60+
- lostcancel
61+
- nilfunc
62+
- nilness
63+
- printf
64+
- reflectvaluecompare
65+
#- shadow
66+
- shift
67+
- sigchanyzer
68+
- slog
69+
- sortslice
70+
- stdmethods
71+
- stringintconv
72+
- structtag
73+
- testinggoroutine
74+
- tests
75+
- unmarshal
76+
- unreachable
77+
- unsafeptr
78+
- unusedresult
79+
- unusedwrite
80+
3681
forbidigo:
3782
forbid:
3883
- p: ^(fmt\.Print(|f|ln)|print|println)$

0 commit comments

Comments
 (0)