Adds golangci-lint to check for code errors + clean up resulting findings after running.

Signed-off-by: Steve Sloka <slokas@vmware.com>
This commit is contained in:
Steve Sloka
2021-10-19 11:15:09 -04:00
parent 70f14a5bfd
commit 2e9c2244c1
38 changed files with 192 additions and 276 deletions

13
.golangci.yml Normal file
View File

@@ -0,0 +1,13 @@
run:
timeout: 10m
linters:
enable:
- bodyclose
- gofmt
- goimports
- revive
- gosec
- misspell
- unconvert
- unparam