refactor beats argument parsing #24082
Annotations
10 errors and 2 warnings
golangci-lint:
libbeat/cfgfile/cfgfile.go#L42
var `dataPath` is unused (unused)
|
golangci-lint:
libbeat/cfgfile/cfgfile.go#L43
var `logsPath` is unused (unused)
|
golangci-lint:
libbeat/cmd/keystore.go#L24
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)
|
golangci-lint:
libbeat/cmd/keystore.go#L30
SA1019: "golang.org/x/crypto/ssh/terminal" is deprecated: this package moved to golang.org/x/term. (staticcheck)
|
golangci-lint:
libbeat/cmd/keystore.go#L42
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
|
golangci-lint:
libbeat/cmd/keystore.go#L139
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
|
golangci-lint:
libbeat/cmd/keystore.go#L142
S1002: should omit comparison to bool constant, can be simplified to `store.IsPersisted()` (gosimple)
|
golangci-lint:
libbeat/cmd/keystore.go#L144
S1002: should omit comparison to bool constant, can be simplified to `response` (gosimple)
|
golangci-lint:
libbeat/cmd/keystore.go#L147
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
|
golangci-lint:
libbeat/cmd/keystore.go#L150
use of `fmt.Println` forbidden by pattern `fmt.Print.*` (forbidigo)
|
Post golangci-lint
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']
|
golangci-lint
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']
|
Loading