sascha-andres/go-template

View on GitHub
storage.go

Summary

Maintainability
A
40 mins
Test Coverage

Method Engine.ensureStorage has 6 return statements (exceeds 4 allowed).
Open

func (e *Engine) ensureStorage() error {
    logger := e.logger.WithField("method", "ensureStorage")
    logger.Debugf("checking [%s]", e.storageDirectory)
    // Find home directory.
    home, err := homedir.Dir()
Severity: Major
Found in storage.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status