asteris-llc/converge

View on GitHub
prettyprinters/subgraph_printer.go

Summary

Maintainability
A
1 hr
Test Coverage

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

func getParentSubgraph(subgraphs SubgraphMap, thisSubgraph SubgraphID, id string) SubgraphID {
    parent := graph.ParentID(id)
    if thisSubgraph == SubgraphBottomID {
        return SubgraphBottomID
    }
Severity: Major
Found in prettyprinters/subgraph_printer.go - About 35 mins to fix

    Method Printer.drawSubgraph has 5 return statements (exceeds 4 allowed).
    Open

    func (p Printer) drawSubgraph(g *graph.Graph, id SubgraphID, subgraph Subgraph) (Renderable, error) {
        subgraphPrinter, spOK := p.pp.(SubgraphPrinter)
        nodePrinter, npOK := p.pp.(NodePrinter)
    
        if !spOK && !npOK {
    Severity: Major
    Found in prettyprinters/subgraph_printer.go - About 35 mins to fix

      Your code does not pass gofmt in 1 place. Go fmt your code!
      Open

      // Copyright © 2016 Asteris, LLC
      Severity: Minor
      Found in prettyprinters/subgraph_printer.go by gofmt

      There are no issues that match your filters.

      Category
      Status