From 8a86ec0c7f73b508b6f8093f4d27209ae902b8e0 Mon Sep 17 00:00:00 2001 From: adisos Date: Thu, 2 Nov 2023 15:22:00 +0200 Subject: [PATCH] additional linter fixes Signed-off-by: adisos --- pkg/netpol/connlist/connlist_test.go | 1 + pkg/netpol/diff/diff_formatter_dot.go | 1 + pkg/netpol/manifests/manifests_test.go | 1 + 3 files changed, 3 insertions(+) diff --git a/pkg/netpol/connlist/connlist_test.go b/pkg/netpol/connlist/connlist_test.go index 55c0c748..7dfbf3fa 100644 --- a/pkg/netpol/connlist/connlist_test.go +++ b/pkg/netpol/connlist/connlist_test.go @@ -205,6 +205,7 @@ func getAnalysisResFromAPI(apiName, dirName, focusWorkload string) ( // TODO: test stopOnErr here? +//nolint:gocritic //temporary commented-out code func TestConnlistAnalyzeSevereErrorsAndWarnings(t *testing.T) { t.Parallel() cases := []struct { diff --git a/pkg/netpol/diff/diff_formatter_dot.go b/pkg/netpol/diff/diff_formatter_dot.go index 0641b20f..0a92bd13 100644 --- a/pkg/netpol/diff/diff_formatter_dot.go +++ b/pkg/netpol/diff/diff_formatter_dot.go @@ -207,6 +207,7 @@ func addSingleEdgeKey(src, dst, edgeLabel, edgeColor string) string { edgeColor, fontColorStr, edgeColor, legendFontSize, legendArrowSize) } +//nolint:revive // temporary work around func addEdgeKeyLines() []string { // const res := []string{ linePrefix + listOpen + legendRankSourceLine + space + strings.Join(invisibleNodes[0:4], space) + listClose, diff --git a/pkg/netpol/manifests/manifests_test.go b/pkg/netpol/manifests/manifests_test.go index 2eab6fdc..2b1a18a9 100644 --- a/pkg/netpol/manifests/manifests_test.go +++ b/pkg/netpol/manifests/manifests_test.go @@ -12,6 +12,7 @@ import ( "github.com/np-guard/netpol-analyzer/pkg/netpol/scan" ) +//nolint:gocritic //temporary commented-out code func TestBasic(t *testing.T) { dirPath := filepath.Join(testutils.GetTestsDir(), "basic") rList, errs := GetResourceInfosFromDirPath([]string{dirPath}, true, false)