l0nax/changelog-go

View on GitHub
pkg/gut/branch.go

Summary

Maintainability
A
40 mins
Test Coverage

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

func GetCurrentBranchFromRepository(repository *git.Repository) (string, error) {
    branchRefs, err := repository.Branches()
    if err != nil {
        return "", err
    }
Severity: Major
Found in pkg/gut/branch.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status