Skip to content

Commit

Permalink
additional linter fixes
Browse files Browse the repository at this point in the history
Signed-off-by: adisos <[email protected]>
  • Loading branch information
adisos committed Nov 2, 2023
1 parent 0851656 commit 8a86ec0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/netpol/connlist/connlist_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions pkg/netpol/diff/diff_formatter_dot.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ func addSingleEdgeKey(src, dst, edgeLabel, edgeColor string) string {
edgeColor, fontColorStr, edgeColor, legendFontSize, legendArrowSize)
}

//nolint:revive // temporary work around

Check failure on line 210 in pkg/netpol/diff/diff_formatter_dot.go

View workflow job for this annotation

GitHub Actions / golangci-lint

directive `//nolint:revive // temporary work around` is unused for linter "revive" (nolintlint)
func addEdgeKeyLines() []string { // const
res := []string{
linePrefix + listOpen + legendRankSourceLine + space + strings.Join(invisibleNodes[0:4], space) + listClose,
Expand Down
1 change: 1 addition & 0 deletions pkg/netpol/manifests/manifests_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8a86ec0

Please sign in to comment.