From 5cc7f27becc7d7850d9f0b93f21d834c40368ddb Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Fri, 5 Apr 2024 08:08:01 +0200 Subject: [PATCH] lint fix --- .golangci.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 5802fe6..f4544e4 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,16 +1,23 @@ -run: - skip-dirs: +issues: + exclude-dirs: - tint - vendor linters-settings: gocritic: disabled-checks: - unlambda - errcheck: - exclude: .errcheck.txt gofumpt: extra-rules: true linters: + errcheck: + exclude-functions: + - (*github.com/tektoncd/pipeline/vendor/go.uber.org/zap.SugaredLogger).Sync + - flag.Set + - logger.Sync + - fmt.Fprintf + - fmt.Fprintln + - (io.Closer).Close + - updateConfigMap enable: - asasalint - asciicheck