Skip to content

using cli runtime builder #861

using cli runtime builder

using cli runtime builder #861

Triggered via pull request November 2, 2023 09:26
Status Failure
Total duration 2m 14s
Artifacts

golangci-lint.yml

on: pull_request
golangci-lint
2m 6s
golangci-lint
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 4 warnings
golangci-lint: pkg/netpol/connlist/connlist_test.go#L177
declaration has 3 blank identifiers (dogsled)
golangci-lint: pkg/netpol/scan/scan.go#L135
Function 'resourceInfoToK8sObject' has too many statements (86 > 50) (funlen)
golangci-lint: pkg/netpol/scan/scan.go#L246
string ` , ` has 3 occurrences, make it a constant (goconst)
golangci-lint: pkg/netpol/scan/scan.go#L145
string `default` has 12 occurrences, make it a constant (goconst)
golangci-lint: pkg/netpol/scan/scan.go#L121
commentedOutCode: may want to remove commented-out code (gocritic)
golangci-lint: pkg/netpol/scan/scan.go#L127
commentedOutCode: may want to remove commented-out code (gocritic)
golangci-lint: pkg/netpol/scan/scan.go#L99
importShadow: shadow of imported from 'github.com/np-guard/netpol-analyzer/pkg/netpol/logger' package 'logger' (gocritic)
golangci-lint: pkg/netpol/scan/scan.go#L137
importShadow: shadow of imported from 'k8s.io/apimachinery/pkg/apis/meta/v1/unstructured' package 'unstructured' (gocritic)
golangci-lint: pkg/netpol/scan/scan.go#L289
paramTypeCombine: func(isWorkload bool, isNetpol bool) *FileProcessingError could be replaced with func(isWorkload, isNetpol bool) *FileProcessingError (gocritic)
golangci-lint: pkg/netpol/manifests/manifests.go#L9
paramTypeCombine: func(paths []string, recursive bool, stopOnErr bool) ([]*resource.Info, []error) could be replaced with func(paths []string, recursive, stopOnErr bool) ([]*resource.Info, []error) (gocritic)
golangci-lint
Restore cache failed: Dependencies file is not found in /home/runner/work/netpol-analyzer/netpol-analyzer. Supported file pattern: go.sum
golangci-lint: pkg/netpol/scan/scan.go#L151
add-constant: string literal "default" appears, at least, 2 times, create a named constant for it (revive)
golangci-lint: pkg/netpol/scan/scan.go#L249
add-constant: string literal " , " appears, at least, 2 times, create a named constant for it (revive)
golangci-lint: pkg/netpol/diff/diff.go#L208
add-constant: string literal "GetResourceInfos error: %s" appears, at least, 2 times, create a named constant for it (revive)