asteris-llc/converge

View on GitHub
graph/node/conditional/conditional.go

Summary

Maintainability
A
1 hr
Test Coverage

Function PeerBranches has 8 return statements (exceeds 4 allowed).
Open

func PeerBranches(g *graph.Graph, meta *node.Node) (out []*node.Node) {
    if !IsConditional(meta) {
        return
    }
    kind, ok := meta.LookupMetadata(MetaType)
Severity: Major
Found in graph/node/conditional/conditional.go - About 50 mins to fix

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

    func RenderPredicate(meta *node.Node, renderFunc func(string, string) (string, error)) (string, error) {
        rendered, ok := meta.LookupMetadata(MetaRenderedPredicate)
        if ok {
            return rendered.(string), nil
        }
    Severity: Major
    Found in graph/node/conditional/conditional.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status