grokify/mogo

View on GitHub
path/filepathutil/filepathutil.go

Summary

Maintainability
A
1 hr
Test Coverage

Consider simplifying this complex logical expression.
Open

        if !(inclExists && inclNotExists) &&
            ((!inclExists && exists) || (!inclNotExists && !exists)) {
Severity: Major
Found in path/filepathutil/filepathutil.go - About 40 mins to fix

    Function UserToAbsolute has 5 return statements (exceeds 4 allowed).
    Open

    func UserToAbsolute(file string) (string, error) {
        file = strings.TrimSpace(file)
        parts := strings.Split(file, string(os.PathSeparator))
        if len(parts) == 0 {
            return file, nil
    Severity: Major
    Found in path/filepathutil/filepathutil.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status