Preparing report...

Report for github.com/Dentrax/Data-Structures-with-Go

F    ... is for lots of things to Fix!    Found 17 issues across 31 files

Tweet

gofmt0%

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

An error occurred while running this test (exit status 2)


go_vet0%

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

An error occurred while running this test (exit status 2)


gocyclo0%

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.

An error occurred while running this test (exit status 2)


golint48%

Golint is a linter for Go source code.

    • Data-Structures-with-Go/merge-sort/merge-sort.go
    • Line 12: warning: exported function Merge should have comment or be unexported (golint)
    • Line 61: warning: exported function MergeSort should have comment or be unexported (golint)
    • Line 74: warning: exported function PrintArray should have comment or be unexported (golint)
    • Line 83: warning: don't use underscores in Go names; var arr_size should be arrSize (golint)
    • Data-Structures-with-Go/binary-tree-3-doubly-linked-list/binary-tree-3-doubly-linked-list.go
    • Line 12: warning: exported type Node should have comment or be unexported (golint)
    • Line 18: warning: comment on exported method Node.Init should be of the form "Init ..." (golint)
    • Line 26: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 31: warning: comment on exported function InOrder should be of the form "InOrder ..." (golint)
    • Line 48: warning: exported function FixPrevPtr should have comment or be unexported (golint)
    • Line 63: warning: exported function FixNextPtr should have comment or be unexported (golint)
    • Line 81: warning: exported function BTToDLL should have comment or be unexported (golint)
    • Line 89: warning: exported function PrintList should have comment or be unexported (golint)
    • Data-Structures-with-Go/linked-list-circular-2-traversal/linked-list-circular-2-traversal.go
    • Line 12: warning: exported type Node should have comment or be unexported (golint)
    • Line 17: warning: comment on exported method Node.Init should be of the form "Init ..." (golint)
    • Line 23: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 28: warning: comment on exported method Node.Next should be of the form "Next ..." (golint)
    • Line 33: warning: comment on exported method Node.Back should be of the form "Back ..." (golint)
    • Line 50: warning: exported function Push should have comment or be unexported (golint)
    • Line 50: warning: don't use underscores in Go names; func parameter head_ref should be headRef (golint)
    • Line 50: warning: don't use underscores in Go names; func parameter new_data should be newData (golint)
    • Line 52: warning: don't use underscores in Go names; var new_node should be newNode (golint)
    • Data-Structures-with-Go/stack/stack.go
    • Line 12: warning: exported const MaxUint should have comment or be unexported (golint)
    • Line 13: warning: exported const MinUint should have comment or be unexported (golint)
    • Line 14: warning: exported const MaxInt should have comment or be unexported (golint)
    • Line 15: warning: exported const MinInt should have comment or be unexported (golint)
    • Line 17: warning: exported type Stack should have comment or be unexported (golint)
    • Line 23: warning: comment on exported method Stack.Init should be of the form "Init ..." (golint)
    • Line 31: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 36: warning: comment on exported function IsFull should be of the form "IsFull ..." (golint)
    • Line 41: warning: comment on exported function IsEmpty should be of the form "IsEmpty ..." (golint)
    • Line 46: warning: exported function Push should have comment or be unexported (golint)
    • Line 54: warning: exported function Pop should have comment or be unexported (golint)
    • Data-Structures-with-Go/linked-list-find-length/linked-list-find-length.go
    • Line 12: warning: exported type Node should have comment or be unexported (golint)
    • Line 17: warning: comment on exported method Node.Init should be of the form "Init ..." (golint)
    • Line 23: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 28: warning: comment on exported method Node.Next should be of the form "Next ..." (golint)
    • Line 33: warning: comment on exported method Node.Back should be of the form "Back ..." (golint)
    • Line 42: warning: exported function Push should have comment or be unexported (golint)
    • Line 42: warning: don't use underscores in Go names; func parameter head_ref should be headRef (golint)
    • Line 42: warning: don't use underscores in Go names; func parameter new_data should be newData (golint)
    • Line 47: warning: don't use underscores in Go names; var new_node should be newNode (golint)
    • Line 59: warning: exported function GetCount should have comment or be unexported (golint)
    • Data-Structures-with-Go/linked-list-merge-two-sorted/linked-list-merge-two-sorted.go
    • Line 12: warning: exported type Node should have comment or be unexported (golint)
    • Line 17: warning: comment on exported method Node.Init should be of the form "Init ..." (golint)
    • Line 23: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 28: warning: comment on exported method Node.Next should be of the form "Next ..." (golint)
    • Line 33: warning: comment on exported method Node.Back should be of the form "Back ..." (golint)
    • Line 42: warning: exported function Push should have comment or be unexported (golint)
    • Line 42: warning: don't use underscores in Go names; func parameter head_ref should be headRef (golint)
    • Line 42: warning: don't use underscores in Go names; func parameter new_data should be newData (golint)
    • Line 47: warning: don't use underscores in Go names; var new_node should be newNode (golint)
    • Line 59: warning: comment on exported function MoveNode should be of the form "MoveNode ..." (golint)
    • Line 71: warning: don't use underscores in Go names; func parameter dest_ref should be destRef (golint)
    • Line 71: warning: don't use underscores in Go names; func parameter source_ref should be sourceRef (golint)
    • Line 73: warning: don't use underscores in Go names; var new_node should be newNode (golint)
    • Line 85: warning: comment on exported function SortedMerge should be of the form "SortedMerge ..." (golint)
    • Line 129: warning: exported function GetDataList should have comment or be unexported (golint)
    • Data-Structures-with-Go/array-minimum-distance/array-minimum-distance.go
    • Line 12: warning: exported const MaxUint should have comment or be unexported (golint)
    • Line 13: warning: exported const MinUint should have comment or be unexported (golint)
    • Line 14: warning: exported const MaxInt should have comment or be unexported (golint)
    • Line 15: warning: exported const MinInt should have comment or be unexported (golint)
    • Line 17: warning: exported function Abs should have comment or be unexported (golint)
    • Line 28: warning: don't use underscores in Go names; var min_dist should be minDist (golint)
    • Data-Structures-with-Go/quick-sort/quick-sort.go
    • Line 12: warning: exported function Swap should have comment or be unexported (golint)
    • Line 18: warning: exported function Partition should have comment or be unexported (golint)
    • Line 38: warning: comment on exported function QuickSort should be of the form "QuickSort ..." (golint)
    • Line 54: warning: exported function PrintArray should have comment or be unexported (golint)
    • Data-Structures-with-Go/binary-tree-2-traversals-level-order/binary-tree-traversals-2-level-order.go
    • Line 12: warning: exported type Node should have comment or be unexported (golint)
    • Line 18: warning: comment on exported method Node.Init should be of the form "Init ..." (golint)
    • Line 26: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 31: warning: comment on exported function GetHeight should be of the form "GetHeight ..." (golint)
    • Line 51: warning: comment on exported function PrintGivenLevel should be of the form "PrintGivenLevel ..." (golint)
    • Line 66: warning: comment on exported function PrintLevelOrder should be of the form "PrintLevelOrder ..." (golint)
    • Data-Structures-with-Go/binary-tree-5-find-min-max/binary-tree-5-find-min-max.go
    • Line 12: warning: exported const MaxUint should have comment or be unexported (golint)
    • Line 13: warning: exported const MinUint should have comment or be unexported (golint)
    • Line 14: warning: exported const MaxInt should have comment or be unexported (golint)
    • Line 15: warning: exported const MinInt should have comment or be unexported (golint)
    • Line 17: warning: exported type Node should have comment or be unexported (golint)
    • Line 23: warning: comment on exported method Node.Init should be of the form "Init ..." (golint)
    • Line 31: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 36: warning: comment on exported function FindMin should be of the form "FindMin ..." (golint)
    • Line 58: warning: comment on exported function FindMax should be of the form "FindMax ..." (golint)
    • Data-Structures-with-Go/binary-search-tree-1-insertion/binary-search-tree-1-insertion.go
    • Line 12: warning: exported type Node should have comment or be unexported (golint)
    • Line 18: warning: comment on exported method Node.Init should be of the form "Init ..." (golint)
    • Line 26: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 31: warning: comment on exported function Search should be of the form "Search ..." (golint)
    • Line 48: warning: comment on exported function PrintInOrder should be of the form "PrintInOrder ..." (golint)
    • Line 57: warning: comment on exported function Insert should be of the form "Insert ..." (golint)
    • Data-Structures-with-Go/linked-list-circular-singly-1-insertion/linked-list-circular-singly-1-insertion.go
    • Line 12: warning: exported type Node should have comment or be unexported (golint)
    • Line 17: warning: comment on exported method Node.Init should be of the form "Init ..." (golint)
    • Line 23: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 28: warning: comment on exported method Node.Next should be of the form "Next ..." (golint)
    • Line 33: warning: comment on exported method Node.Back should be of the form "Back ..." (golint)
    • Line 42: warning: comment on exported function AddToEmpty should be of the form "AddToEmpty ..." (golint)
    • Line 61: warning: comment on exported function AddBegin should be of the form "AddBegin ..." (golint)
    • Line 80: warning: comment on exported function AddEnd should be of the form "AddEnd ..." (golint)
    • Line 100: warning: comment on exported function AddAfter should be of the form "AddAfter ..." (golint)
    • Line 137: warning: exported function Traverse should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 2)