synapsecns/sanguine

View on GitHub
contrib/git-changes-action/detector/tree/add.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func AddDirectoryPaths(tree Tree, dirPath, trimPrefix string) error {
    err := filepath.Walk(dirPath, func(path string, _ os.FileInfo, err error) error {
        if err != nil {
            return fmt.Errorf("error walking path %s: %w", path, err)
        }
Severity: Major
Found in contrib/git-changes-action/detector/tree/add.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status