Skip to content

golangci config file #16

golangci config file

golangci config file #16

Triggered via push April 20, 2024 15:46
Status Failure
Total duration 2m 45s
Artifacts

test.yaml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
test (1.22.x): pkg/networkpolicy/controller.go#L461
assignOp: replace `msg = msg + fmt.Sprintf(" DstPod (%s/%s): %d Ne<...>me, dstPod.Namespace, len(dstPodNetworkPolices))` with `msg += fmt.Sprintf(" DstPod (%s/%s): %d NetworkPolicy"<...>me, dstPod.Namespace, len(dstPodNetworkPolices))` (gocritic)
test (1.22.x): pkg/networkpolicy/controller.go#L458
assignOp: replace `msg = msg + fmt.Sprintf(" SrcPod (%s/%s): %d Ne<...>me, srcPod.Namespace, len(srcPodNetworkPolices))` with `msg += fmt.Sprintf(" SrcPod (%s/%s): %d NetworkPolicy"<...>me, srcPod.Namespace, len(srcPodNetworkPolices))` (gocritic)
test (1.22.x): pkg/networkpolicy/controller.go#L357
assignOp: replace `rule = rule + " bypass"` with `rule += " bypass"` (gocritic)
test (1.22.x): pkg/networkpolicy/metrics.go#L74
ST1003: should not use underscores in Go names; struct field queue_number should be queueNumber (stylecheck)
test (1.22.x): pkg/networkpolicy/metrics.go#L75
ST1003: should not use underscores in Go names; struct field peer_portid should be peerPortid (stylecheck)
test (1.22.x): pkg/networkpolicy/metrics.go#L76
ST1003: should not use underscores in Go names; struct field queue_total should be queueTotal (stylecheck)
test (1.22.x): pkg/networkpolicy/metrics.go#L77
ST1003: should not use underscores in Go names; struct field copy_mode should be copyMode (stylecheck)
test (1.22.x): pkg/networkpolicy/metrics.go#L78
ST1003: should not use underscores in Go names; struct field copy_range should be copyRange (stylecheck)
test (1.22.x): pkg/networkpolicy/metrics.go#L79
ST1003: should not use underscores in Go names; struct field queue_dropped should be queueDropped (stylecheck)
test (1.22.x): pkg/networkpolicy/metrics.go#L80
ST1003: should not use underscores in Go names; struct field user_dropped should be userDropped (stylecheck)
test (1.22.x)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v3, actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.