prettyprinters/subgraph_printer.go
Function getParentSubgraph
has 5 return statements (exceeds 4 allowed). Open
Open
func getParentSubgraph(subgraphs SubgraphMap, thisSubgraph SubgraphID, id string) SubgraphID {
parent := graph.ParentID(id)
if thisSubgraph == SubgraphBottomID {
return SubgraphBottomID
}
Method Printer.drawSubgraph
has 5 return statements (exceeds 4 allowed). Open
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 {
Your code does not pass gofmt in 1 place. Go fmt your code! Open
Open
// Copyright © 2016 Asteris, LLC
- Exclude checks