Skip to content

Migrate Netflow code to the logp logging library #26657

Migrate Netflow code to the logp logging library

Migrate Netflow code to the logp logging library #26657

Triggered via pull request January 14, 2025 17:26
Status Failure
Total duration 9m 39s
Artifacts

golangci-lint.yml

on: pull_request
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

14 errors and 9 warnings
lint (windows): x-pack/filebeat/input/netflow/decoder/test/helper.go#L23
field `log` is unused (unused)
lint (windows): x-pack/filebeat/input/netflow/decoder/v1/v1.go#L62
Error return value of `protocol.Registry.Register` is not checked (errcheck)
lint (windows): x-pack/filebeat/input/netflow/decoder/v7/v7.go#L57
Error return value of `protocol.Registry.Register` is not checked (errcheck)
lint (windows): x-pack/filebeat/input/netflow/decoder/v8/v8.go#L307
Error return value of `protocol.Registry.Register` is not checked (errcheck)
lint (windows): x-pack/filebeat/input/netflow/decoder/v9/decoder.go#L166
error is not nil (line 159) but it returns nil (nilerr)
lint (windows): x-pack/filebeat/input/netflow/decoder/v9/session_test.go#L21
var `logerr` is unused (unused)
lint (windows)
issues found
lint (linux): x-pack/filebeat/input/netflow/decoder/test/helper.go#L23
field `log` is unused (unused)
lint (linux): x-pack/filebeat/input/netflow/decoder/v1/v1.go#L62
Error return value of `protocol.Registry.Register` is not checked (errcheck)
lint (linux): x-pack/filebeat/input/netflow/decoder/v5/v5.go#L56
Error return value of `protocol.Registry.Register` is not checked (errcheck)
lint (linux): x-pack/filebeat/input/netflow/decoder/v8/v8.go#L307
Error return value of `protocol.Registry.Register` is not checked (errcheck)
lint (linux): x-pack/filebeat/input/netflow/decoder/v9/decoder.go#L166
error is not nil (line 159) but it returns nil (nilerr)
lint (linux): x-pack/filebeat/input/netflow/decoder/v9/session_test.go#L21
var `logerr` is unused (unused)
lint (linux)
issues found
lint (darwin)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint (darwin)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'install-mode', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-save-cache', 'problem-matchers', 'args', 'cache-invalidation-interval']
lint (darwin)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'install-mode', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-save-cache', 'problem-matchers', 'args', 'cache-invalidation-interval']
lint (windows)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint (windows)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'install-mode', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-save-cache', 'problem-matchers', 'args', 'cache-invalidation-interval']
lint (windows)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'install-mode', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-save-cache', 'problem-matchers', 'args', 'cache-invalidation-interval']
lint (linux)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint (linux)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'install-mode', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-save-cache', 'problem-matchers', 'args', 'cache-invalidation-interval']
lint (linux)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'install-mode', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-save-cache', 'problem-matchers', 'args', 'cache-invalidation-interval']