Preparing report...

Report for github.com/algorithm101/gorithm

A+    Excellent!    Found 29 issues across 647 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!


gocyclo97%

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.


golint97%

Golint is a linter for Go source code.

    • gorithm/pkg/p0208/p0208.go
    • Line 15: warning: package comment should be of the form "Package p0208 ..." (golint)
    • Line 171: warning: exported type Trie should have comment or be unexported (golint)
    • Line 175: warning: comment on exported function Constructor should be of the form "Constructor ..." (golint)
    • Line 186: warning: comment on exported method Trie.Insert should be of the form "Insert ..." (golint)
    • Line 187: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 191: warning: comment on exported method Trie.Search should be of the form "Search ..." (golint)
    • Line 192: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 196: warning: comment on exported method Trie.StartsWith should be of the form "StartsWith ..." (golint)
    • Line 197: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gorithm/pkg/p0385/p0385.go
    • Line 55: warning: exported method NestedInteger.IsInteger should have comment or be unexported (golint)
    • Line 59: warning: exported method NestedInteger.GetInteger should have comment or be unexported (golint)
    • Line 63: warning: exported method NestedInteger.SetInteger should have comment or be unexported (golint)
    • Line 68: warning: exported method NestedInteger.Add should have comment or be unexported (golint)
    • Line 70: warning: exported method NestedInteger.GetList should have comment or be unexported (golint)
    • gorithm/pkg/p0622/p0622.go
    • Line 15: warning: package comment should be of the form "Package p0622 ..." (golint)
    • Line 20: warning: exported type MyCircularQueue should have comment or be unexported (golint)
    • Line 27: warning: comment on exported function Constructor should be of the form "Constructor ..." (golint)
    • Line 37: warning: comment on exported method MyCircularQueue.EnQueue should be of the form "EnQueue ..." (golint)
    • Line 38: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 56: warning: comment on exported method MyCircularQueue.DeQueue should be of the form "DeQueue ..." (golint)
    • Line 57: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 69: warning: comment on exported method MyCircularQueue.Front should be of the form "Front ..." (golint)
    • Line 70: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 78: warning: comment on exported method MyCircularQueue.Rear should be of the form "Rear ..." (golint)
    • Line 79: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 92: warning: comment on exported method MyCircularQueue.IsEmpty should be of the form "IsEmpty ..." (golint)
    • Line 93: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 97: warning: comment on exported method MyCircularQueue.IsFull should be of the form "IsFull ..." (golint)
    • Line 98: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gorithm/pkg/p0707/p0707.go
    • Line 15: warning: package comment should be of the form "Package p0707 ..." (golint)
    • Line 24: warning: exported type MyLinkedList should have comment or be unexported (golint)
    • Line 30: warning: comment on exported function Constructor should be of the form "Constructor ..." (golint)
    • Line 41: warning: comment on exported method MyLinkedList.Get should be of the form "Get ..." (golint)
    • Line 42: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 56: warning: comment on exported method MyLinkedList.AddAtHead should be of the form "AddAtHead ..." (golint)
    • Line 57: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 71: warning: comment on exported method MyLinkedList.AddAtTail should be of the form "AddAtTail ..." (golint)
    • Line 72: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 86: warning: comment on exported method MyLinkedList.AddAtIndex should be of the form "AddAtIndex ..." (golint)
    • Line 87: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 110: warning: comment on exported method MyLinkedList.DeleteAtIndex should be of the form "DeleteAtIndex ..." (golint)
    • Line 111: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 128: warning: exported method MyLinkedList.Print should have comment or be unexported (golint)
    • Line 128: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gorithm/pkg/p0225/p0225.go
    • Line 15: warning: package comment should be of the form "Package p0225 ..." (golint)
    • Line 22: warning: exported type MyStack should have comment or be unexported (golint)
    • Line 26: warning: comment on exported function Constructor should be of the form "Constructor ..." (golint)
    • Line 33: warning: comment on exported method MyStack.Push should be of the form "Push ..." (golint)
    • Line 34: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 38: warning: comment on exported method MyStack.Pop should be of the form "Pop ..." (golint)
    • Line 39: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 49: warning: comment on exported method MyStack.Top should be of the form "Top ..." (golint)
    • Line 50: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 59: warning: comment on exported method MyStack.Empty should be of the form "Empty ..." (golint)
    • Line 60: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gorithm/pkg/p0641/p0641.go
    • Line 15: warning: package comment should be of the form "Package p0641 ..." (golint)
    • Line 18: warning: exported type MyCircularDeque should have comment or be unexported (golint)
    • Line 25: warning: comment on exported function Constructor should be of the form "Constructor ..." (golint)
    • Line 35: warning: comment on exported method MyCircularDeque.InsertFront should be of the form "InsertFront ..." (golint)
    • Line 36: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 50: warning: comment on exported method MyCircularDeque.InsertLast should be of the form "InsertLast ..." (golint)
    • Line 51: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 67: warning: comment on exported method MyCircularDeque.DeleteFront should be of the form "DeleteFront ..." (golint)
    • Line 68: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 80: warning: comment on exported method MyCircularDeque.DeleteLast should be of the form "DeleteLast ..." (golint)
    • Line 81: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 94: warning: comment on exported method MyCircularDeque.GetFront should be of the form "GetFront ..." (golint)
    • Line 95: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 103: warning: comment on exported method MyCircularDeque.GetRear should be of the form "GetRear ..." (golint)
    • Line 104: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 116: warning: comment on exported method MyCircularDeque.IsEmpty should be of the form "IsEmpty ..." (golint)
    • Line 117: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 121: warning: comment on exported method MyCircularDeque.IsFull should be of the form "IsFull ..." (golint)
    • Line 122: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gorithm/pkg/p0307/p0307.go
    • Line 15: warning: package comment should be of the form "Package p0307 ..." (golint)
    • Line 42: warning: comment on exported type NumArray should be of the form "NumArray ..." (with optional leading article) (golint)
    • Line 68: warning: exported function Constructor should have comment or be unexported (golint)
    • Line 82: warning: exported method NumArray.Update should have comment or be unexported (golint)
    • Line 82: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 88: warning: exported method NumArray.SumRange should have comment or be unexported (golint)
    • Line 88: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gorithm/pkg/p0304/p0304.go
    • Line 15: warning: package comment should be of the form "Package p0304 ..." (golint)
    • Line 18: warning: exported type NumMatrix should have comment or be unexported (golint)
    • Line 22: warning: exported function Constructor should have comment or be unexported (golint)
    • Line 48: warning: exported method NumMatrix.SumRegion should have comment or be unexported (golint)
    • Line 48: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gorithm/pkg/p0706/p0706.go
    • Line 15: warning: package comment should be of the form "Package p0706 ..." (golint)
    • Line 23: warning: exported type MyHashMap should have comment or be unexported (golint)
    • Line 27: warning: comment on exported function Constructor should be of the form "Constructor ..." (golint)
    • Line 39: warning: comment on exported method MyHashMap.Put should be of the form "Put ..." (golint)
    • Line 40: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 59: warning: comment on exported method MyHashMap.Get should be of the form "Get ..." (golint)
    • Line 60: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 72: warning: comment on exported method MyHashMap.Remove should be of the form "Remove ..." (golint)
    • Line 73: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gorithm/pkg/p0155/p0155.go
    • Line 15: warning: package comment should be of the form "Package p0155 ..." (golint)
    • Line 18: warning: exported type MinStack should have comment or be unexported (golint)
    • Line 23: warning: comment on exported function Constructor should be of the form "Constructor ..." (golint)
    • Line 28: warning: exported method MinStack.Push should have comment or be unexported (golint)
    • Line 28: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 43: warning: exported method MinStack.Pop should have comment or be unexported (golint)
    • Line 43: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 50: warning: exported method MinStack.Top should have comment or be unexported (golint)
    • Line 50: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 58: warning: exported method MinStack.GetMin should have comment or be unexported (golint)
    • Line 58: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gorithm/pkg/p0232/p0232.go
    • Line 15: warning: package comment should be of the form "Package p0232 ..." (golint)
    • Line 20: warning: exported type MyQueue should have comment or be unexported (golint)
    • Line 25: warning: comment on exported function Constructor should be of the form "Constructor ..." (golint)
    • Line 33: warning: comment on exported method MyQueue.Push should be of the form "Push ..." (golint)
    • Line 34: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 38: warning: comment on exported method MyQueue.Pop should be of the form "Pop ..." (golint)
    • Line 39: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 61: warning: comment on exported method MyQueue.Peek should be of the form "Peek ..." (golint)
    • Line 62: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 84: warning: comment on exported method MyQueue.Empty should be of the form "Empty ..." (golint)
    • Line 85: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gorithm/pkg/p0703/p0703.go
    • Line 15: warning: package comment should be of the form "Package p0703 ..." (golint)
    • Line 20: warning: exported type KthLargest should have comment or be unexported (golint)
    • Line 37: warning: exported method KthLargest.Push should have comment or be unexported (golint)
    • Line 42: warning: exported method KthLargest.Pop should have comment or be unexported (golint)
    • Line 48: warning: exported function Constructor should have comment or be unexported (golint)
    • Line 68: warning: exported method KthLargest.Add should have comment or be unexported (golint)
    • Line 68: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gorithm/pkg/p0705/p0705.go
    • Line 15: warning: package comment should be of the form "Package p0705 ..." (golint)
    • Line 20: warning: exported type MyHashSet should have comment or be unexported (golint)
    • Line 24: warning: comment on exported function Constructor should be of the form "Constructor ..." (golint)
    • Line 36: warning: exported method MyHashSet.Add should have comment or be unexported (golint)
    • Line 36: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 46: warning: exported method MyHashSet.Remove should have comment or be unexported (golint)
    • Line 46: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 59: warning: comment on exported method MyHashSet.Contains should be of the form "Contains ..." (golint)
    • Line 60: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!