From daeef6ffc383d44d3518fc1ff91990febc62dc49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Mon, 13 Jun 2022 13:04:15 +0100 Subject: [PATCH] Add lint checks for gzip/zlib MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since we want to use a faster gzip/zlib libraries we should add a lint check so that it's used everywhere Signed-off-by: Ɓukasz Mierzwa --- .golangci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 166b2e0d4..cc290b334 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -60,6 +60,10 @@ linters-settings: desc: "Use github.com/grafana/regexp instead of regexp" - pkg: "github.com/pkg/errors" desc: "Use 'errors' or 'fmt' instead of github.com/pkg/errors" + - pkg: "gzip" + desc: "Use github.com/klauspost/compress instead of gzip" + - pkg: "zlib" + desc: "Use github.com/klauspost/compress instead of zlib" errcheck: exclude-functions: # Don't flag lines such as "io.Copy(io.Discard, resp.Body)".