From 25997d16b95d5a69e42147a3a581c1203f7675d4 Mon Sep 17 00:00:00 2001 From: Mario Manno Date: Wed, 30 Sep 2020 12:48:08 +0200 Subject: [PATCH] Update golangci-lint, skip generated code --- .golangci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 26168816..2566f12d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,5 +1,8 @@ run: deadline: 20s + skip-dirs: + - vendor + - pkg/kube/client linters-settings: dupl: threshold: 400 @@ -11,7 +14,7 @@ issues: # (fill in the rest as needed) exclude-rules: - linters: [errcheck] - text: "Error return value of .((os\\.)?std(out|err)\\..*|.*Close|.*Flush|os\\.Remove(All)?|.*printf?|os\\.(Un)?Setenv|Errorf|viper.BindPFlag). is not checked" + text: "Error return value of .((os\\.)?std(out|err)\\..*|.*Close|.*Flush|os\\.Remove(All)?|.*printf?|os\\.(Un)?Setenv|.*Errorf|viper.BindPFlag). is not checked" skip-files: - ".*_fake.go$" skip-dirs: @@ -28,7 +31,6 @@ linters: - deadcode - errcheck - varcheck - - goconst - unparam - ineffassign - nakedret