kubenetworks/kubevpn

View on GitHub
pkg/daemon/elevate/elevate_windows.go

Summary

Maintainability
A
1 hr
Test Coverage

Function RunCmdWithElevated has 6 return statements (exceeds 4 allowed).
Open

func RunCmdWithElevated(exe string, arg []string) error {
    verb := "runas"
    cwd, err := os.Getwd()
    if err != nil {
        return err
Severity: Major
Found in pkg/daemon/elevate/elevate_windows.go - About 40 mins to fix

    Function RunCmd has 6 return statements (exceeds 4 allowed).
    Open

    func RunCmd(exe string, arg []string) error {
        verb := "open"
        cwd, err := os.Getwd()
        if err != nil {
            return err
    Severity: Major
    Found in pkg/daemon/elevate/elevate_windows.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status