Skip to content

refactor beats argument parsing #24114

refactor beats argument parsing

refactor beats argument parsing #24114

Triggered via pull request October 17, 2024 14:26
Status Failure
Total duration 8m 44s
Artifacts

golangci-lint.yml

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

Annotations

12 errors and 6 warnings
lint (linux): libbeat/cmd/keystore.go#L142
S1002: should omit comparison to bool constant, can be simplified to `!force` (gosimple)
lint (linux): libbeat/cmd/keystore.go#L150
use of `fmt.Printf` forbidden by pattern `fmt.Print.*` (forbidigo)
lint (linux): libbeat/cmd/keystore.go#L156
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
lint (linux): libbeat/cmd/keystore.go#L159
use of `fmt.Printf` forbidden by pattern `fmt.Print.*` (forbidigo)
lint (linux): libbeat/cmd/keystore.go#L174
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
lint (linux): libbeat/cmd/keystore.go#L177
S1002: should omit comparison to bool constant, can be simplified to `!store.IsPersisted()` (gosimple)
lint (linux): libbeat/cmd/keystore.go#L178
S1002: should omit comparison to bool constant, can be simplified to `!force` (gosimple)
lint (linux): libbeat/cmd/keystore.go#L180
S1002: should omit comparison to bool constant, can be simplified to `!answer` (gosimple)
lint (linux): libbeat/cmd/keystore.go#L186
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
lint (linux): libbeat/cmd/keystore.go#L188
use of `fmt.Println` forbidden by pattern `fmt.Print.*` (forbidigo)
lint (windows)
The job was canceled because "linux" failed.
lint (windows)
The operation was canceled.
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 (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']
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']