Add golangci-lint workflow (#4999)
* fix lint workflow * add golang lint * close http response body
This commit is contained in:
13
.golangci.yaml
Normal file
13
.golangci.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
linters:
|
||||
# Disable all linters.
|
||||
# Default: false
|
||||
disable-all: true
|
||||
# Enable specific linter
|
||||
# https://golangci-lint.run/usage/linters/#enabled-by-default-linters
|
||||
enable:
|
||||
- deadcode
|
||||
- unused
|
||||
- varcheck
|
||||
- ineffassign
|
||||
- staticcheck
|
||||
- gosimple
|
||||
Reference in New Issue
Block a user