From 5583926fb94afacf51607f6801209c4210b47a3d Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Mon, 8 May 2023 14:54:15 +0200 Subject: [PATCH] lint: allow security replace directives --- .golangci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 4bbce4669..a6e1ad630 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -98,6 +98,13 @@ linters-settings: - 'math.*' - 'strconv.ParseInt' - 'errors.Wrap' + + gomoddirectives: + replace-allow-list: + # See go.mod for the explanation why these are needed. + - github.com/ulikunitz/xz + - github.com/gogo/protobuf + - google.golang.org/protobuf linters: