From 4ad1f8ee3a5f941f5d73435b7f1b8686e0f40c18 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 11 Jun 2024 16:41:01 +0200 Subject: [PATCH] .golangci.yml: properly specify functions to exclude for return values check after the upgrade to v1.59.1 at 239a7b6e6fec21dc8fdb54ace2f85d575f7dd385 --- .golangci.yml | 5 ++++- errcheck_excludes.txt | 3 --- 2 files changed, 4 insertions(+), 4 deletions(-) delete mode 100644 errcheck_excludes.txt diff --git a/.golangci.yml b/.golangci.yml index c3cbae0dc..a5cb83057 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -16,4 +16,7 @@ issues: linters-settings: errcheck: - exclude-functions: ./errcheck_excludes.txt + exclude-functions: + - "fmt.Fprintf" + - "fmt.Fprint" + - "(net/http.ResponseWriter).Write" diff --git a/errcheck_excludes.txt b/errcheck_excludes.txt deleted file mode 100644 index 1c1db2702..000000000 --- a/errcheck_excludes.txt +++ /dev/null @@ -1,3 +0,0 @@ -fmt.Fprintf -fmt.Fprint -(net/http.ResponseWriter).Write