feat(plugins): Windows eBPF Plugin for retina #4738
Annotations
22 errors and 4 warnings
Lint (windows, amd64):
pkg/plugin/ebpfwindows/ebpf_windows.go#L173
Error return value of `eventsMap.UnregisterForCallback` is not checked (errcheck)
|
Lint (windows, amd64):
pkg/plugin/ebpfwindows/ebpf_windows_test.go#L22
Error return value of `log.SetupZapLogger` is not checked (errcheck)
|
Lint (windows, amd64):
pkg/plugin/ebpfwindows/eventsmap_types_windows.go#L82
captLocal: `IPv6' should not be capitalized (gocritic)
|
Lint (windows, amd64):
pkg/plugin/ebpfwindows/eventsmap_windows.go#L16
var-declaration: should drop = nil from declaration of var eventsCallback; it is the zero value (revive)
|
Lint (windows, amd64):
pkg/plugin/ebpfwindows/metricsmap_windows.go#L66
var-naming: var retinaEbpfApi should be retinaEbpfAPI (revive)
|
Lint (windows, amd64):
pkg/plugin/ebpfwindows/dropreasons_windows.go#L74
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
|
Lint (windows, amd64):
pkg/plugin/ebpfwindows/ebpf_windows_test.go#L21
unused-parameter: parameter 't' seems to be unused, consider removing or renaming it as _ (revive)
|
Lint (windows, amd64):
pkg/plugin/ebpfwindows/metricsmap_windows.go#L75
var-declaration: should drop = nil from declaration of var enumCallBack; it is the zero value (revive)
|
Lint (windows, amd64):
pkg/plugin/ebpfwindows/dropreasons_windows.go#L67
fmt.Sprintf can be replaced with faster strconv.Itoa (perfsprint)
|
Lint (windows, amd64):
pkg/plugin/ebpfwindows/metricsmap_windows.go#L100
SA1019: reflect.SliceHeader has been deprecated since Go 1.21 and an alternative has been available since Go 1.17: Use unsafe.Slice or unsafe.SliceData instead. (staticcheck)
|
Lint (windows, arm64):
pkg/plugin/ebpfwindows/ebpf_windows.go#L173
Error return value of `eventsMap.UnregisterForCallback` is not checked (errcheck)
|
Lint (windows, arm64):
pkg/plugin/ebpfwindows/ebpf_windows_test.go#L22
Error return value of `log.SetupZapLogger` is not checked (errcheck)
|
Lint (windows, arm64):
pkg/plugin/ebpfwindows/eventsmap_types_windows.go#L82
captLocal: `IPv6' should not be capitalized (gocritic)
|
Lint (windows, arm64):
pkg/plugin/ebpfwindows/dropreasons_windows.go#L74
indent-error-flow: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (revive)
|
Lint (windows, arm64):
pkg/plugin/ebpfwindows/eventsmap_windows.go#L16
var-declaration: should drop = nil from declaration of var eventsCallback; it is the zero value (revive)
|
Lint (windows, arm64):
pkg/plugin/ebpfwindows/metricsmap_windows.go#L75
var-declaration: should drop = nil from declaration of var enumCallBack; it is the zero value (revive)
|
Lint (windows, arm64):
pkg/plugin/ebpfwindows/ebpf_windows_test.go#L21
unused-parameter: parameter 't' seems to be unused, consider removing or renaming it as _ (revive)
|
Lint (windows, arm64):
pkg/plugin/ebpfwindows/metricsmap_windows.go#L66
var-naming: var retinaEbpfApi should be retinaEbpfAPI (revive)
|
Lint (windows, arm64):
pkg/plugin/ebpfwindows/dropreasons_windows.go#L67
fmt.Sprintf can be replaced with faster strconv.Itoa (perfsprint)
|
Lint (windows, arm64):
pkg/plugin/ebpfwindows/metricsmap_windows.go#L100
SA1019: reflect.SliceHeader has been deprecated since Go 1.21 and an alternative has been available since Go 1.17: Use unsafe.Slice or unsafe.SliceData instead. (staticcheck)
|
Lint (linux, arm64)
issues found
|
Lint (linux, amd64)
issues found
|
Lint (windows, amd64)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Lint (windows, arm64)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Lint (linux, arm64)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Lint (linux, amd64)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|