From 018974ee96e087bccf13d79c4ee3f1f391386970 Mon Sep 17 00:00:00 2001 From: TJ Hoplock Date: Tue, 16 Jan 2024 00:16:29 -0500 Subject: [PATCH] ci: ignore err-check lintings for io.Copy --- .golangci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 7c0dda0..0c4f22f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,5 +1,7 @@ linters-settings: errcheck: exclude-functions: + # Don't flag lines such as "io.Copy(io.Discard, resp.Body)". + - io.Copy # Never check for logger errors. - (github.com/go-kit/log.Logger).Log