pkg/adapter/cocafile/file_analysis_helper.go

Summary

Maintainability
A
40 mins
Test Coverage

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

func GetFilesWithFilter(codeDir string, filter func(path string) bool) []string {
    files := make([]string, 0)
    gitIgnore, err := ignore.CompileIgnoreFile(filepath.FromSlash(codeDir + "/.gitignore"))
    if err != nil {
        fmt.Println(err)
Severity: Major
Found in pkg/adapter/cocafile/file_analysis_helper.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status