Skip to content

fix wrapcheck linting issues #90

fix wrapcheck linting issues

fix wrapcheck linting issues #90

Triggered via push March 8, 2024 12:59
Status Failure
Total duration 3m 11s
Billable time 6m
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
Golangci-lint: cmd/root.go#L92
Error return value of `(*github.com/spf13/pflag.FlagSet).Set` is not checked (errcheck)
Golangci-lint: cmd/install.go#L39
use of `fmt.Println` forbidden by pattern `^(fmt\.Print(|f|ln)|print|println)$` (forbidigo)
Golangci-lint: pkg/containerd/configure.go#L89
wrapperFunc: use strings.ReplaceAll method in `strings.Replace(string(data), cfg, "", -1)` (gocritic)
Golangci-lint: pkg/containerd/restart.go#L59
ifElseChain: rewrite if-else to switch statement (gocritic)
Golangci-lint: pkg/state/state.go#L62
G306: Expect WriteFile permissions to be 0600 or less (gosec)
Golangci-lint: pkg/containerd/configure.go#L92
G306: Expect WriteFile permissions to be 0600 or less (gosec)
Golangci-lint: pkg/containerd/restart.go#L56
unnecessary trailing newline (whitespace)
Golangci-lint: pkg/containerd/configure.go#L41
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
Golangci-lint: pkg/containerd/configure.go#L56
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
Golangci-lint: pkg/containerd/configure.go#L63
non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)
Golangci-lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: golangci/golangci-lint-action@3a919529898de77ec3da873e3063ca4b10e7f5cc. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Golangci-lint: pkg/state/state.go#L20
unexported-return: exported func Get returns unexported type *state.state, which can be annoying to use (revive)