fix(errorhandling): Filesystem check and error handling improvements #7514
Annotations
13 errors
|
Lint (linux, amd64)
issues found
|
|
Lint (linux, amd64):
pkg/plugin/common/filesystem_linux.go#L22
error returned from external package is unwrapped: sig: func golang.org/x/sys/unix.Statfs(path string, buf *golang.org/x/sys/unix.Statfs_t) (err error) (wrapcheck)
|
|
Lint (linux, amd64):
pkg/plugin/common/filesystem_linux_test.go#L113
File is not properly formatted (gofumpt)
|
|
Lint (linux, amd64):
pkg/plugin/common/filesystem_linux_test.go#L105
do not define dynamic errors, use wrapped static errors instead: "errors.New(\"no bpf\")" (err113)
|
|
Lint (linux, amd64):
pkg/plugin/common/filesystem_linux_test.go#L83
do not define dynamic errors, use wrapped static errors instead: "errors.New(\"not mounted\")" (err113)
|
|
Lint (linux, amd64):
pkg/plugin/common/filesystem_linux_test.go#L32
do not define dynamic errors, use wrapped static errors instead: "errors.New(\"path not found\")" (err113)
|
|
Lint (linux, arm64)
issues found
|
|
Lint (linux, arm64):
pkg/plugin/common/filesystem_linux.go#L22
error returned from external package is unwrapped: sig: func golang.org/x/sys/unix.Statfs(path string, buf *golang.org/x/sys/unix.Statfs_t) (err error) (wrapcheck)
|
|
Lint (linux, arm64):
pkg/plugin/common/filesystem_linux_test.go#L4
var-naming: avoid meaningless package names (revive)
|
|
Lint (linux, arm64):
pkg/plugin/common/filesystem_linux_test.go#L113
File is not properly formatted (gofumpt)
|
|
Lint (linux, arm64):
pkg/plugin/common/filesystem_linux_test.go#L105
do not define dynamic errors, use wrapped static errors instead: "errors.New(\"no bpf\")" (err113)
|
|
Lint (linux, arm64):
pkg/plugin/common/filesystem_linux_test.go#L83
do not define dynamic errors, use wrapped static errors instead: "errors.New(\"not mounted\")" (err113)
|
|
Lint (linux, arm64):
pkg/plugin/common/filesystem_linux_test.go#L32
do not define dynamic errors, use wrapped static errors instead: "errors.New(\"path not found\")" (err113)
|