From da75619245d5fc7c90922b19f427084080b45a38 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Thu, 14 Jul 2022 09:29:34 +0200 Subject: [PATCH] golangci: disable new exhauststruct rule A new linter rule was added in the latest version that wants all fields in a struct to be declared, even if the default value is used. Because that would mean a large diff for us, we disable the rule for now. --- .golangci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.golangci.yml b/.golangci.yml index 1098fcc3d..cc4e151b6 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -108,6 +108,7 @@ linters: - contextcheck - errname - exhaustivestruct + - exhaustruct - goerr113 - gomnd - ifshort