sascha-andres/go-template

View on GitHub
repo_add.go

Summary

Maintainability
A
50 mins
Test Coverage

Method Engine.AddRepository has 8 return statements (exceeds 4 allowed).
Open

func (e *Engine) AddRepository(url, branch string) (*Repository, error) {
    logger := e.logger.WithField("method", "AddRepository")
    logger.Debugf("add from [%s]", url)
    temporaryDirectory, err := ioutil.TempDir("", "go-template")
    if err != nil {
Severity: Major
Found in repo_add.go - About 50 mins to fix

    There are no issues that match your filters.

    Category
    Status