Preparing report...

Report for moul.io/graphman

A+    Excellent!    Found 8 issues across 19 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo94%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

    • /moul.io/graphman/pert_config.go
    • Line 36: warning: cyclomatic complexity 27 of function FromPertConfig() is high (> 15) (gocyclo)
    • Line 189: warning: cyclomatic complexity 25 of function pertMergeDummyActionGroups() is high (> 15) (gocyclo)

golint57%

Golint is a linter for Go source code.

    • /moul.io/graphman/graph.go
    • Line 13: warning: exported type Graph should have comment or be unexported (golint)
    • Line 22: warning: exported function New should have comment or be unexported (golint)
    • Line 36: warning: exported method Graph.SinkVertices should have comment or be unexported (golint)
    • Line 46: warning: exported method Graph.ConnectedSubgraphs should have comment or be unexported (golint)
    • Line 62: warning: exported method Graph.ConnectedSubgraphFromVertex should have comment or be unexported (golint)
    • Line 81: warning: exported method Graph.SourceVertices should have comment or be unexported (golint)
    • Line 91: warning: exported method Graph.FindAllPaths should have comment or be unexported (golint)
    • Line 123: warning: exported method Graph.FindShortestPath should have comment or be unexported (golint)
    • Line 128: warning: exported method Graph.FindShortestPathFN should have comment or be unexported (golint)
    • Line 182: warning: exported method Graph.Edges should have comment or be unexported (golint)
    • Line 187: warning: exported method Graph.Vertices should have comment or be unexported (golint)
    • Line 217: warning: exported method Graph.AddVertex should have comment or be unexported (golint)
    • Line 236: warning: exported method Graph.RemoveVertex should have comment or be unexported (golint)
    • Line 247: warning: exported method Graph.RemoveEdge should have comment or be unexported (golint)
    • Line 258: warning: exported method Graph.GetVertex should have comment or be unexported (golint)
    • Line 267: warning: exported method Graph.AddEdge should have comment or be unexported (golint)
    • Line 284: warning: exported method Graph.IsolatedVertices should have comment or be unexported (golint)
    • Line 325: warning: exported type Graphs should have comment or be unexported (golint)
    • /moul.io/graphman/path.go
    • Line 12: warning: exported type Path should have comment or be unexported (golint)
    • Line 30: warning: exported method Path.IsValid should have comment or be unexported (golint)
    • Line 39: warning: exported method Path.Vertices should have comment or be unexported (golint)
    • Line 50: warning: exported method Path.HasVertex should have comment or be unexported (golint)
    • Line 65: warning: exported method Path.FirstEdge should have comment or be unexported (golint)
    • Line 66: warning: exported method Path.LastEdge should have comment or be unexported (golint)
    • Line 67: warning: exported method Path.FirstVertex should have comment or be unexported (golint)
    • Line 68: warning: exported method Path.LastVertex should have comment or be unexported (golint)
    • Line 70: warning: exported method Path.Edges should have comment or be unexported (golint)
    • Line 76: warning: exported type Paths should have comment or be unexported (golint)
    • /moul.io/graphman/pert.go
    • Line 12: warning: exported const Day should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: exported type PertAttrs should have comment or be unexported (golint)
    • Line 26: warning: exported method PertAttrs.WeightedEstimate should have comment or be unexported (golint)
    • Line 30: warning: exported method PertAttrs.StandardDeviation should have comment or be unexported (golint)
    • Line 34: warning: exported method PertAttrs.Variance should have comment or be unexported (golint)
    • Line 39: warning: exported method PertAttrs.AverageEstimate should have comment or be unexported (golint)
    • Line 65: warning: exported type PertResult should have comment or be unexported (golint)
    • Line 79: warning: exported function ComputePert should have comment or be unexported (golint)
    • /moul.io/graphman/pert_config.go
    • Line 9: warning: exported type PertAction should have comment or be unexported (golint)
    • Line 16: warning: exported type PertState should have comment or be unexported (golint)
    • Line 22: warning: exported type PertConfig should have comment or be unexported (golint)
    • Line 36: warning: exported function FromPertConfig should have comment or be unexported (golint)
    • /moul.io/graphman/vertex.go
    • Line 13: warning: exported type Vertex should have comment or be unexported (golint)
    • Line 41: warning: exported method Vertex.IsSource should have comment or be unexported (golint)
    • Line 42: warning: exported method Vertex.IsSink should have comment or be unexported (golint)
    • Line 43: warning: exported method Vertex.InDegree should have comment or be unexported (golint)
    • Line 44: warning: exported method Vertex.OutDegree should have comment or be unexported (golint)
    • Line 45: warning: exported method Vertex.Degree should have comment or be unexported (golint)
    • Line 46: warning: exported method Vertex.PredecessorEdges should have comment or be unexported (golint)
    • Line 47: warning: exported method Vertex.SuccessorEdges should have comment or be unexported (golint)
    • Line 48: warning: exported method Vertex.IsIsolated should have comment or be unexported (golint)
    • Line 50: warning: exported method Vertex.PredecessorVertices should have comment or be unexported (golint)
    • Line 60: warning: exported method Vertex.SuccessorVertices should have comment or be unexported (golint)
    • Line 70: warning: exported method Vertex.Edges should have comment or be unexported (golint)
    • Line 74: warning: exported method Vertex.Neighbors should have comment or be unexported (golint)
    • Line 89: warning: exported method Vertex.ID should have comment or be unexported (golint)
    • Line 99: warning: exported type VerticesWalkFunc should have comment or be unexported (golint)
    • Line 101: warning: exported method Vertex.WalkSuccessorVertices should have comment or be unexported (golint)
    • Line 125: warning: exported method Vertex.WalkPredecessorVertices should have comment or be unexported (golint)
    • Line 149: warning: exported method Vertex.WalkAdjacentVertices should have comment or be unexported (golint)
    • Line 182: warning: exported type Vertices should have comment or be unexported (golint)
    • Line 206: warning: exported method Vertices.Unique should have comment or be unexported (golint)
    • Line 219: warning: exported method Vertices.Equals should have comment or be unexported (golint)
    • /moul.io/graphman/attr.go
    • Line 9: warning: exported type Attrs should have comment or be unexported (golint)
    • Line 11: warning: exported method Attrs.Has should have comment or be unexported (golint)
    • Line 16: warning: exported method Attrs.Merge should have comment or be unexported (golint)
    • Line 22: warning: exported method Attrs.Del should have comment or be unexported (golint)
    • Line 26: warning: exported method Attrs.IsEmpty should have comment or be unexported (golint)
    • Line 47: warning: exported method Attrs.SetTitle should have comment or be unexported (golint)
    • Line 52: warning: exported method Attrs.GetTitle should have comment or be unexported (golint)
    • Line 66: warning: exported method Attrs.SetPertUndefinedDependency should have comment or be unexported (golint)
    • Line 72: warning: exported method Attrs.SetPertEstimates should have comment or be unexported (golint)
    • Line 82: warning: exported method Attrs.SetPertState should have comment or be unexported (golint)
    • Line 89: warning: exported method Attrs.SetPertAction should have comment or be unexported (golint)
    • Line 96: warning: exported method Attrs.SetPertUntitled should have comment or be unexported (golint)
    • Line 102: warning: exported method Attrs.SetPertZeroTimeActivity should have comment or be unexported (golint)
    • Line 108: warning: exported method Attrs.SetPertNonStandardGraph should have comment or be unexported (golint)
    • Line 114: warning: exported method Attrs.GetPert should have comment or be unexported (golint)
    • Line 121: warning: exported method Attrs.Clone should have comment or be unexported (golint)
    • Line 129: warning: exported method Attrs.SetColor should have comment or be unexported (golint)
    • Line 134: warning: exported method Attrs.GetColor should have comment or be unexported (golint)
    • Line 141: warning: exported method Attrs.GetComment should have comment or be unexported (golint)
    • Line 148: warning: exported method Attrs.SetComment should have comment or be unexported (golint)
    • /moul.io/graphman/edge.go
    • Line 13: warning: exported type Edge should have comment or be unexported (golint)
    • Line 20: warning: exported type EdgeCostFN should have comment or be unexported (golint)
    • Line 36: warning: exported method Edge.Dst should have comment or be unexported (golint)
    • Line 37: warning: exported method Edge.Src should have comment or be unexported (golint)
    • Line 39: warning: exported method Edge.Vertices should have comment or be unexported (golint)
    • Line 51: warning: exported method Edge.HasVertex should have comment or be unexported (golint)
    • Line 55: warning: exported method Edge.OtherVertex should have comment or be unexported (golint)
    • Line 69: warning: exported type Edges should have comment or be unexported (golint)
    • Line 89: warning: exported method Edges.Equals should have comment or be unexported (golint)
    • Line 129: warning: exported type EdgesCombinations should have comment or be unexported (golint)
    • Line 131: warning: exported method EdgesCombinations.LongestToShortest should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!