grokify/mogo

View on GitHub
os/osutil/filepath.go

Summary

Maintainability
A
1 hr
Test Coverage

Function Filenames has 7 return statements (exceeds 4 allowed).
Open

func Filenames(name string, rx *regexp.Regexp, inclEmptyFiles, absPath bool) ([]string, error) {
    isFile, err := IsFile(name, !inclEmptyFiles)
    if err != nil {
        return []string{}, err
    }
Severity: Major
Found in os/osutil/filepath.go - About 45 mins to fix

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

    func SplitBest(path string) (dir, file string, err error) {
        isDir, err := IsDir(path)
        if err != nil {
            return "", "", err
        } else if isDir {
    Severity: Major
    Found in os/osutil/filepath.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status