feat: refactor cli parsing #2780
Annotations
10 errors
golangci-lint - windows:
cmd/finch/nerdctl_remote.go#L239
Error return value of `file.Close` is not checked (errcheck)
|
golangci-lint - windows:
cmd/finch/nerdctl_remote.go#L43
appendAssign: append result not assigned to the same slice (gocritic)
|
golangci-lint - windows:
cmd/finch/nerdctl_remote.go#L72
appendAssign: append result not assigned to the same slice (gocritic)
|
golangci-lint - windows:
cmd/finch/nerdctl_remote.go#L164
ifElseChain: rewrite if-else to switch statement (gocritic)
|
golangci-lint - windows:
cmd/finch/nerdctl_remote.go#L235
G304: Potential file inclusion via variable (gosec)
|
golangci-lint - windows:
cmd/finch/nerdctl.go#L193
increment-decrement: should replace idx += 1 with idx++ (revive)
|
golangci-lint - windows:
cmd/finch/nerdctl.go#L144
unused-parameter: parameter 'args' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint - windows:
cmd/finch/nerdctl_remote.go#L179
(*nerdctlCommand).handleEnvFileArg - result 0 (error) is always nil (unparam)
|
golangci-lint - windows:
cmd/finch/devcontainer_patch.go#L114
func `handleDockerCompatComposeVersion` is unused (unused)
|
golangci-lint - windows:
cmd/finch/nerdctl.go#L79
unnecessary trailing newline (whitespace)
|
Loading