refactor beats argument parsing #24114
Annotations
10 errors and 2 warnings
libbeat/cmd/keystore.go#L142
S1002: should omit comparison to bool constant, can be simplified to `!force` (gosimple)
|
libbeat/cmd/keystore.go#L150
use of `fmt.Printf` forbidden by pattern `fmt.Print.*` (forbidigo)
|
libbeat/cmd/keystore.go#L156
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
|
libbeat/cmd/keystore.go#L159
use of `fmt.Printf` forbidden by pattern `fmt.Print.*` (forbidigo)
|
libbeat/cmd/keystore.go#L174
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
|
libbeat/cmd/keystore.go#L177
S1002: should omit comparison to bool constant, can be simplified to `!store.IsPersisted()` (gosimple)
|
libbeat/cmd/keystore.go#L178
S1002: should omit comparison to bool constant, can be simplified to `!force` (gosimple)
|
libbeat/cmd/keystore.go#L180
S1002: should omit comparison to bool constant, can be simplified to `!answer` (gosimple)
|
libbeat/cmd/keystore.go#L186
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
|
libbeat/cmd/keystore.go#L188
use of `fmt.Println` forbidden by pattern `fmt.Print.*` (forbidigo)
|
|
|
This job failed
Loading