Preparing report...

Report for github.com/duongtuanhiep/leetcodealgo

A    Great!    Found 58 issues across 195 files

Tweet

gofmt94%

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!


gocyclo96%

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.


golint82%

Golint is a linter for Go source code.

    • leetcodealgo/goSolution/leetcode/design/circularqueue.go
    • Line 11: warning: exported type MyCircularQueue should have comment or be unexported (golint)
    • Line 16: warning: exported function Constructor should have comment or be unexported (golint)
    • Line 21: warning: exported method MyCircularQueue.EnQueue should have comment or be unexported (golint)
    • Line 21: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 30: warning: exported method MyCircularQueue.DeQueue should have comment or be unexported (golint)
    • Line 30: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 39: warning: exported method MyCircularQueue.Front should have comment or be unexported (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 47: warning: exported method MyCircularQueue.Rear should have comment or be unexported (golint)
    • Line 47: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 55: warning: exported method MyCircularQueue.IsEmpty should have comment or be unexported (golint)
    • Line 55: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 60: warning: exported method MyCircularQueue.IsFull should have comment or be unexported (golint)
    • Line 60: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • leetcodealgo/goSolution/leetcode/concurrency/printfoobar/main.go
    • Line 22: warning: exported function PrintFooBar should have comment or be unexported (golint)
    • Line 33: warning: exported function PrintFoo should have comment or be unexported (golint)
    • Line 43: warning: exported function PrintBar should have comment or be unexported (golint)
    • Line 53: warning: exported function PrintFooBarNoMutex should have comment or be unexported (golint)
    • Line 68: warning: exported function PrintFooBarMutex should have comment or be unexported (golint)
    • Line 86: warning: exported function PrintFooStr should have comment or be unexported (golint)
    • Line 90: warning: exported function PrintBarStr should have comment or be unexported (golint)
    • leetcodealgo/goSolution/leetcode/linkedlist/completelyRandom.go
    • Line 5: warning: comment on exported type ListNode should be of the form "ListNode ..." (with optional leading article) (golint)
    • Line 37: warning: comment on exported type Solution should be of the form "Solution ..." (with optional leading article) (golint)
    • Line 42: warning: comment on exported function Constructor should be of the form "Constructor ..." (golint)
    • Line 50: warning: comment on exported method Solution.GetRandom should be of the form "GetRandom ..." (golint)
    • Line 51: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • leetcodealgo/goSolution/leetcode/design/NestedListIterator.go
    • Line 29: warning: exported type NestedIterator should have comment or be unexported (golint)
    • Line 32: warning: exported function Constructor should have comment or be unexported (golint)
    • Line 36: warning: exported method NestedIterator.Next 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 40: warning: exported method NestedIterator.HasNext should have comment or be unexported (golint)
    • Line 40: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • leetcodealgo/goSolution/contest/lc/contest3/q2.go
    • Line 12: warning: exported method IntHeap.Push should have comment or be unexported (golint)
    • Line 18: warning: exported method IntHeap.Pop should have comment or be unexported (golint)
    • Line 26: warning: exported type SeatManager should have comment or be unexported (golint)
    • Line 30: warning: exported function Constructor should have comment or be unexported (golint)
    • Line 39: warning: exported method SeatManager.Reserve should have comment or be unexported (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 43: warning: exported method SeatManager.Unreserve 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)
    • leetcodealgo/goSolution/leetcode/design/BSTIterator.go
    • Line 9: warning: comment on exported type BSTIterator should be of the form "BSTIterator ..." (with optional leading article) (golint)
    • Line 15: warning: exported function Constructor should have comment or be unexported (golint)
    • Line 33: warning: exported method BSTIterator.Next should have comment or be unexported (golint)
    • Line 33: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 38: warning: exported method BSTIterator.HasNext should have comment or be unexported (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 45: warning: comment on exported type BSTIterator should be of the form "BSTIterator ..." (with optional leading article) (golint)
    • Line 51: warning: exported function Constructor should have comment or be unexported (golint)
    • Line 66: warning: exported method BSTIterator.Next should have comment or be unexported (golint)
    • Line 66: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 73: warning: exported method BSTIterator.HasNext should have comment or be unexported (golint)
    • Line 73: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • leetcodealgo/goSolution/leetcode/twoPointer/maxSlideWin.go
    • Line 1: warning: don't use MixedCaps in package name; twoPointer should be twopointer (golint)
    • Line 10: warning: exported type IntHeap should have comment or be unexported (golint)
    • Line 16: warning: exported method IntHeap.Push should have comment or be unexported (golint)
    • Line 22: warning: exported method IntHeap.Pop should have comment or be unexported (golint)
    • leetcodealgo/goSolution/leetcode/array/findMedianFromStream.go
    • Line 15: warning: comment on exported type MaxHeap should be of the form "MaxHeap ..." (with optional leading article) (golint)
    • Line 22: warning: exported method MaxHeap.Push should have comment or be unexported (golint)
    • Line 28: warning: exported method MaxHeap.Pop should have comment or be unexported (golint)
    • Line 36: warning: comment on exported type MinHeap should be of the form "MinHeap ..." (with optional leading article) (golint)
    • Line 43: warning: exported method MinHeap.Push should have comment or be unexported (golint)
    • Line 49: warning: exported method MinHeap.Pop should have comment or be unexported (golint)
    • Line 57: warning: exported type MedianFinder should have comment or be unexported (golint)
    • Line 63: warning: comment on exported function Constructor should be of the form "Constructor ..." (golint)
    • Line 72: warning: exported method MedianFinder.AddNum should have comment or be unexported (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 97: warning: exported method MedianFinder.FindMedian should have comment or be unexported (golint)
    • Line 97: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell95%

Misspell Finds commonly misspelled English words