fix(filebeat): prevent panic in dissect processor with invalid field name #41244
Annotations
14 errors and 1 warning
|
lint (ubuntu-latest)
issues found
|
|
lint (ubuntu-latest):
libbeat/processors/dissect/const.go#L61
var errEmptyKey is unused (unused)
|
|
lint (ubuntu-latest):
libbeat/processors/dissect/field.go#L77
SA4005: ineffective assignment to field baseField.greedy (staticcheck)
|
|
lint (ubuntu-latest):
libbeat/processors/dissect/dissect_test.go#L245
S1007: should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (staticcheck)
|
|
lint (ubuntu-latest):
libbeat/processors/dissect/dissect_test.go#L223
S1007: should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (staticcheck)
|
|
lint (ubuntu-latest):
libbeat/processors/dissect/dissect_test.go#L23
SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
|
|
lint (ubuntu-latest):
libbeat/processors/dissect/const.go#L47
S1007: should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (staticcheck)
|
|
lint (ubuntu-latest):
libbeat/processors/dissect/dissect_test.go#L121
ineffectual assignment to err (ineffassign)
|
|
lint (ubuntu-latest):
libbeat/processors/dissect/dissect_test.go#L147
use of `fmt.Printf` forbidden by pattern `fmt.Print.*` (forbidigo)
|
|
lint (ubuntu-latest):
libbeat/processors/dissect/dissect_test.go#L142
use of `fmt.Printf` forbidden by pattern `fmt.Print.*` (forbidigo)
|
|
lint (macos-latest)
The strategy configuration was canceled because "golangci.ubuntu-latest" failed
|
|
lint (macos-latest)
The operation was canceled.
|
|
lint (windows-latest)
The strategy configuration was canceled because "golangci.ubuntu-latest" failed
|
|
lint (windows-latest)
The operation was canceled.
|
|
lint (macos-latest)
Failed to save: "/opt/homebrew/bin/gtar" failed with error: The process '/opt/homebrew/bin/gtar' failed with exit code 1
|