efritz/derision

View on GitHub
internal/template/serialization.go

Summary

Maintainability
A
35 mins
Test Coverage

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

func Unmarshal(payload []byte) (Template, error) {
    t := &jsonTemplate{}
    if err := json.Unmarshal(payload, &t); err != nil {
        return nil, fmt.Errorf("failed to unmarshal payload (%s)", err.Error())
    }
Severity: Major
Found in internal/template/serialization.go - About 35 mins to fix

    exported function Unmarshal should have comment or be unexported
    Open

    func Unmarshal(payload []byte) (Template, error) {
    Severity: Minor
    Found in internal/template/serialization.go by golint

    There are no issues that match your filters.

    Category
    Status