From ea3cdfd52cb9f395ff4a06a11dd46f2e010c244b Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Mon, 23 Oct 2023 13:24:11 -0400 Subject: [PATCH] ci: relax nolintlint Hitting https://github.com/golangci/golangci-lint/issues/3228 when adding nolint. So allow to ignore unused nolints. (cherry picked from commit 31b073262e42527bf5f0471cb49f1b7b6273a1e4) --- .golangci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index b6e4ffb230..db45eb6083 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -126,6 +126,9 @@ linters-settings: - pkg: sigs.k8s.io/cluster-api/controlplane/kubeadm/api/v1beta1 alias: controlplanev1 + nolintlint: + # https://github.com/golangci/golangci-lint/issues/3228 + allow-unused: true staticcheck: go: "1.17" stylecheck: