From 92b651e5487442611bced08794f3022f06838617 Mon Sep 17 00:00:00 2001 From: Brad Davidson Date: Fri, 2 Jul 2021 13:33:34 -0700 Subject: [PATCH] update golangci config to sync with RKE2 Signed-off-by: Brad Davidson --- .golangci.json | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.golangci.json b/.golangci.json index 4f117ec74c..c1c6c3e2b5 100644 --- a/.golangci.json +++ b/.golangci.json @@ -3,7 +3,7 @@ "disable-all": true, "enable": [ "govet", - "golint", + "revive", "goimports", "misspell", "ineffassign", @@ -12,11 +12,27 @@ }, "run": { "skip-dirs": [ - "build", "/go/src/github.com/rancher/k3s/build" + "build", + "contrib", + "manifests", + "package", + "scripts" ], "skip-files": [ "/zz_generated_" ], "deadline": "5m" + }, + "issues": { + "exclude-rules": [ + { + "linters": "typecheck", + "text": "imported but not used" + }, + { + "linters": "revive", + "text": "should have comment" + } + ] } }