From 38855bf6469e7ac4317d551ba84eefe1ececcd76 Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Sun, 14 Nov 2021 10:57:31 +0100 Subject: [PATCH] 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. --- .golangci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .golangci.yml diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 00000000..07fd00b8 --- /dev/null +++ b/.golangci.yml @@ -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