mjslabs/ggft

View on GitHub

Showing 1 of 3 total issues

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

func processPath(curPath, templateDir, output string, skipSuffixes, skipTrimSuffixes, trimSuffixes, ignoredFiles []string) error {
    destination := filepath.Join(output, strings.Replace(curPath, templateDir, "", 1))
    fi, err := os.Stat(curPath)
    if err != nil {
        return err
Severity: Major
Found in cmd/new.go - About 45 mins to fix
    Severity
    Category
    Status
    Source
    Language