pedroMMM/goss

View on GitHub
template.go

Summary

Maintainability
A
35 mins
Test Coverage

Function NewTemplateFilter has 5 return statements (exceeds 4 allowed).
Open

func NewTemplateFilter(varsFile string, varsInline string) (func([]byte) ([]byte, error), error) {
    vars, err := loadVars(varsFile, varsInline)
    if err != nil {
        return nil, fmt.Errorf("failed while loading vars file %q: %v", varsFile, err)
    }
Severity: Major
Found in template.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status