hunterlong/statup

View on GitHub
utils/utils_custom.go

Summary

Maintainability
A
1 hr
Test Coverage

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

func Ping(address string, secondsTimeout int) (int64, error) {
    ping, err := exec.LookPath("ping")
    if err != nil {
        return 0, err
    }
Severity: Major
Found in utils/utils_custom.go - About 40 mins to fix

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

    func DirWritable(path string) (bool, error) {
        info, err := os.Stat(path)
        if err != nil {
            return false, errors.New("path doesn't exist")
        }
    Severity: Major
    Found in utils/utils_custom.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status