lint : define golangci configuration file

This put everything concerning golangci following [this](https://golangci-lint.run/usage/configuration/).
This way, anyone running golangci with a command line or with it's favorite Ide will use the same configuration for the current project.
This commit is contained in:
Matthieu MOREL 2021-11-14 10:57:31 +01:00 committed by Mike Farah
parent a17c97b515
commit 38855bf646
1 changed files with 13 additions and 0 deletions

13
.golangci.yml Normal file
View File

@ -0,0 +1,13 @@
run:
timeout: 5m
linters:
enable:
- gofmt
- goimports
- gosec
issues:
exclude-rules:
- linters:
- gosec
text: "Implicit memory aliasing in for loop."
path: _test\.go