From e217f341a011b88cb4359a200fb109ca175cb210 Mon Sep 17 00:00:00 2001
From: Frederic BIDON <frederic@oneconcern.com>
Date: Tue, 5 Feb 2019 20:07:11 +0100
Subject: [PATCH] Add .golangci.yml config

This allows this repo (or its forks) to be configured for golangCI linting platform.

This also provide settings for local golangci-lint tool. See also PR #448.

Signed-off-by: Frederic BIDON <frederic@oneconcern.com>
---
 .golangci.yml | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 .golangci.yml

diff --git a/.golangci.yml b/.golangci.yml
new file mode 100644
index 0000000..0f29bb3
--- /dev/null
+++ b/.golangci.yml
@@ -0,0 +1,23 @@
+linters-settings:
+  govet:
+    check-shadowing: true
+  golint:
+    min-confidence: 0
+  gocyclo:
+    min-complexity: 60
+  maligned:
+    suggest-new: true
+  dupl:
+    threshold: 100
+  goconst:
+    min-len: 2
+    min-occurrences: 2
+
+linters:
+  enable-all: true
+  disable:
+    - maligned
+    - unparam
+    - lll
+    - gochecknoinits
+    - gochecknoglobals
-- 
GitLab