Skip to content

Log raw events and errors containing events to a separate file #13765

Log raw events and errors containing events to a separate file

Log raw events and errors containing events to a separate file #13765

Triggered via pull request January 16, 2024 19:12
Status Failure
Total duration 7m 5s
Artifacts

golangci-lint.yml

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

Annotations

12 errors and 6 warnings
lint (windows): filebeat/tests/integration/events_log_file_test.go#L86
Error return value of `logFile.WriteString` is not checked (errcheck)
lint (windows): libbeat/cmd/instance/beat.go#L201
SA1019: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator. (staticcheck)
lint (windows): libbeat/cmd/instance/beat.go#L810
Error return value of `b.Config.EventLogging.Merge` is not checked (errcheck)
lint (windows): libbeat/cmd/test/output.go#L55
use of `fmt.Printf` forbidden by pattern `fmt.Print.*` (forbidigo)
lint (windows): libbeat/outputs/elasticsearch/client_integration_test.go#L25
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 (windows): libbeat/outputs/elasticsearch/client_integration_test.go#L88
Error return value of `client.conn.Delete` is not checked (errcheck)
lint (windows): libbeat/outputs/elasticsearch/client_integration_test.go#L134
Error return value of `client.conn.Delete` is not checked (errcheck)
lint (windows): libbeat/outputs/elasticsearch/client_integration_test.go#L170
Error return value of `client.conn.DeletePipeline` is not checked (errcheck)
lint (windows): libbeat/outputs/elasticsearch/client_integration_test.go#L220
Error return value of `client.conn.Delete` is not checked (errcheck)
lint (windows): libbeat/outputs/elasticsearch/client_integration_test.go#L315
Error return value of `client.conn.DeletePipeline` is not checked (errcheck)
lint (linux)
The job was canceled because "windows" failed.
lint (linux)
The operation was canceled.
lint (darwin)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (darwin)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (windows)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (windows)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (linux)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']
lint (linux)
Unexpected input(s) 'skip-go-installation', valid inputs are ['version', 'args', 'working-directory', 'github-token', 'only-new-issues', 'skip-cache', 'skip-pkg-cache', 'skip-build-cache', 'install-mode']