Preparing report...

Report for github.com/Ch3ck/Algo

A+    Excellent!    Found 17 issues across 42 files

Tweet

gofmt95%

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


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!


gocyclo95%

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.


golint69%

Golint is a linter for Go source code.

    • Algo/adjaceny-list-graph/adjacency-list-graph.go
    • Line 20: warning: don't use an underscore in package name (golint)
    • Line 56: warning: exported function NewEdge should have comment or be unexported (golint)
    • Line 65: warning: comment on exported type DirectedAdjacencyListGraph should be of the form "DirectedAdjacencyListGraph ..." (with optional leading article) (golint)
    • Line 79: warning: exported function NewDALGraph should have comment or be unexported (golint)
    • Line 107: warning: comment on exported method DirectedAdjacencyListGraph.Vertices should be of the form "Vertices ..." (golint)
    • Line 281: warning: comment on exported method DirectedAdjacencyListGraph.BFS should be of the form "BFS ..." (golint)
    • Algo/allpairs/allpairs.go
    • Line 1: warning: package comment should be of the form "Package allpairs ..." (golint)
    • Line 5: warning: comment on exported const INF should be of the form "INF ..." (golint)
    • Line 8: warning: comment on exported type Edge should be of the form "Edge ..." (with optional leading article) (golint)
    • Line 13: warning: exported type Edges should have comment or be unexported (golint)
    • Algo/bst/binarySearchTree.go
    • Line 7: warning: exported type Node should have comment or be unexported (golint)
    • Line 13: warning: exported function Insert should have comment or be unexported (golint)
    • Line 24: warning: exported function Search should have comment or be unexported (golint)
    • Line 38: warning: exported function Minval should have comment or be unexported (golint)
    • Line 46: warning: exported function Delete should have comment or be unexported (golint)
    • Line 70: warning: exported function PreorderTraverse should have comment or be unexported (golint)
    • Line 79: warning: exported function InorderTraverse should have comment or be unexported (golint)
    • Line 88: warning: exported function PostorderTraverse should have comment or be unexported (golint)
    • Line 96: warning: exported function IdenticalTrees should have comment or be unexported (golint)
    • Algo/kruskal/kruskal.go
    • Line 1: warning: package comment should be of the form "Package kruskal ..." (golint)
    • Line 7: warning: comment on exported type Edge should be of the form "Edge ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported type Edges should be of the form "Edges ..." (with optional leading article) (golint)
    • Line 27: warning: comment on exported function MinimumSpanningForest should be of the form "MinimumSpanningForest ..." (golint)
    • Algo/graph/graph.go
    • Line 5: warning: comment on exported type ID should be of the form "ID ..." (with optional leading article) (golint)
    • Line 8: warning: exported type Node should have comment or be unexported (golint)
    • Line 26: warning: comment on exported type Graph should be of the form "Graph ..." (with optional leading article) (golint)
    • Line 33: warning: comment on exported type NodeVisitorFunc should be of the form "NodeVisitorFunc ..." (with optional leading article) (golint)
    • Line 40: warning: exported function NewDirectedGraph should have comment or be unexported (golint)
    • Algo/heapsort/heapsort.go
    • Line 11: warning: exported function Swap should have comment or be unexported (golint)
    • Line 17: warning: exported function LeftChild should have comment or be unexported (golint)
    • Line 22: warning: exported function PercDown should have comment or be unexported (golint)
    • Line 40: warning: exported function Heapsort should have comment or be unexported (golint)
    • Algo/kruskal/dsu.go
    • Line 3: warning: comment on exported type Node should be of the form "Node ..." (with optional leading article) (golint)
    • Line 9: warning: comment on exported function Find should be of the form "Find ..." (golint)
    • Line 14: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 20: warning: comment on exported function Union should be of the form "Union ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell97%

Misspell Finds commonly misspelled English words