zephinzer/dev

View on GitHub
internal/git/remote.go

Summary

Maintainability
A
40 mins
Test Coverage

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

func GetRemote(fromGitRepositoryAt string, remoteNameMatcher ...string) (*Remote, error) {
    // validation checks
    gitPath := path.Join(fromGitRepositoryAt, "/.git")
    fileInfo, err := os.Lstat(gitPath)
    if err != nil {
Severity: Major
Found in internal/git/remote.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status