nikoksr/proji

View on GitHub
pkg/package/service/dirstructure.go

Summary

Maintainability
A
55 mins
Test Coverage

Method packageService.ImportPackageFromDirectoryStructure has 9 return statements (exceeds 4 allowed).
Open

func (ps packageService) ImportPackageFromDirectoryStructure(path string, exclude *regexp.Regexp) (*domain.Package, error) {
    // Validate that the directory exists
    if !util.DoesPathExist(path) {
        return nil, fmt.Errorf("given directory does not exist")
    }
Severity: Major
Found in pkg/package/service/dirstructure.go - About 55 mins to fix

    There are no issues that match your filters.

    Category
    Status