pkg/adapter/cocafile/file_analysis_helper.go
Function GetFilesWithFilter
has 6 return statements (exceeds 4 allowed). Open
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)