Preparing report...

Report for github.com/kylesliu/awesome-golang-leetcode

A    Great!    Found 2292 issues across 2303 files

Tweet

gofmt98%

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!


golint0%

Golint is a linter for Go source code.

    • awesome-golang-leetcode/leetcode/101-200/0174.Dungeon-Game/Solution.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 3: warning: exported type NumArray should have comment or be unexported (golint)
    • Line 8: warning: comment on exported function Constructor should be of the form "Constructor ..." (golint)
    • Line 15: warning: exported method NumArray.SumRange should have comment or be unexported (golint)
    • Line 15: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 23: warning: comment on exported function Constructor2 should be of the form "Constructor2 ..." (golint)
    • Line 37: warning: exported method NumArray.SumRange2 should have comment or be unexported (golint)
    • Line 37: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 41: warning: comment on exported function Constructor3 should be of the form "Constructor3 ..." (golint)
    • Line 53: warning: exported method NumArray.SumRange3 should have comment or be unexported (golint)
    • Line 53: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • awesome-golang-leetcode/leetcode/1-100/0025.Reverse-Nodes-in-k-Group/ListNode.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 8: warning: exported type ListNode should have comment or be unexported (golint)
    • Line 13: warning: comment on exported function Solution should be of the form "Solution ..." (golint)
    • Line 41: warning: exported function PrintList should have comment or be unexported (golint)
    • Line 49: warning: comment on exported function UnmarshalListBySlice should be of the form "UnmarshalListBySlice ..." (golint)
    • Line 60: warning: comment on exported function UnmarshalListByRand should be of the form "UnmarshalListByRand ..." (golint)
    • Line 61: warning: don't use underscores in Go names; func parameter max_num should be maxNum (golint)
    • awesome-golang-leetcode/cmd/leetcode/problem.go
    • Line 14: warning: exported type LeetCode should have comment or be unexported (golint)
    • Line 27: warning: comment on exported type Problem should be of the form "Problem ..." (with optional leading article) (golint)
    • Line 39: warning: exported type Stat should have comment or be unexported (golint)
    • Line 52: warning: exported type Difficulty should have comment or be unexported (golint)
    • Line 56: warning: exported function GetAllProblemsPath should have comment or be unexported (golint)
    • Line 62: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 69: warning: exported function GetProblemsInstance should have comment or be unexported (golint)
    • Line 86: warning: exported function GetSortedProblemsInstance should have comment or be unexported (golint)
    • Line 108: warning: exported function GetProblemsJson should have comment or be unexported (golint)
    • Line 110: warning: don't use underscores in Go names; var problem_string should be problemString (golint)
    • Line 201: warning: exported function UrlPath should have comment or be unexported (golint)
    • awesome-golang-leetcode/cmd/leetcode/summary.go
    • Line 12: warning: exported const SOURCE_SOLUTION_SUMMARY_FILE_PATH should have comment or be unexported (golint)
    • Line 14: warning: exported type Todo should have comment or be unexported (golint)
    • Line 19: warning: exported type TodoPageData should have comment or be unexported (golint)
    • Line 24: warning: comment on exported function MakeGitbookSummary should be of the form "MakeGitbookSummary ..." (golint)
    • Line 45: warning: exported function CheckProblemExists should have comment or be unexported (golint)
    • awesome-golang-leetcode/leetcode/101-200/0160.Intersection-of-Two-Linked-Lists/ListNode.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 8: warning: exported type ListNode should have comment or be unexported (golint)
    • Line 13: warning: comment on exported function Solution should be of the form "Solution ..." (golint)
    • Line 41: warning: exported function PrintList should have comment or be unexported (golint)
    • Line 49: warning: comment on exported function UnmarshalListBySlice should be of the form "UnmarshalListBySlice ..." (golint)
    • Line 60: warning: comment on exported function UnmarshalListByRand should be of the form "UnmarshalListByRand ..." (golint)
    • Line 61: warning: don't use underscores in Go names; func parameter max_num should be maxNum (golint)
    • awesome-golang-leetcode/leetcode/701-800/0703.Kth-Largest-Element-in-a-Stream/Solution.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 5: warning: comment on exported type IntHeap should be of the form "IntHeap ..." (with optional leading article) (golint)
    • 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: comment on exported type KthLargest should be of the form "KthLargest ..." (with optional leading article) (golint)
    • Line 32: warning: comment on exported function Constructor should be of the form "Constructor ..." (golint)
    • Line 47: warning: exported method KthLargest.Add 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)
    • awesome-golang-leetcode/leetcode/101-200/0138.Copy-List-with-Random-Pointer/ListNode.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 8: warning: exported type ListNode should have comment or be unexported (golint)
    • Line 41: warning: exported function PrintList should have comment or be unexported (golint)
    • Line 49: warning: comment on exported function UnmarshalListBySlice should be of the form "UnmarshalListBySlice ..." (golint)
    • Line 60: warning: comment on exported function UnmarshalListByRand should be of the form "UnmarshalListByRand ..." (golint)
    • Line 61: warning: don't use underscores in Go names; func parameter max_num should be maxNum (golint)
    • awesome-golang-leetcode/leetcode/201-300/0206.Reverse-Linked-List/ListNode.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 8: warning: exported type ListNode should have comment or be unexported (golint)
    • Line 13: warning: comment on exported function Solution should be of the form "Solution ..." (golint)
    • Line 41: warning: exported function PrintList should have comment or be unexported (golint)
    • Line 49: warning: comment on exported function UnmarshalListBySlice should be of the form "UnmarshalListBySlice ..." (golint)
    • Line 60: warning: comment on exported function UnmarshalListByRand should be of the form "UnmarshalListByRand ..." (golint)
    • Line 61: warning: don't use underscores in Go names; func parameter max_num should be maxNum (golint)
    • awesome-golang-leetcode/lib/Stack.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 5: warning: exported type Stack should have comment or be unexported (golint)
    • Line 9: warning: exported function NewStack should have comment or be unexported (golint)
    • Line 14: warning: exported method Stack.Push should have comment or be unexported (golint)
    • Line 18: warning: exported method Stack.Pop should have comment or be unexported (golint)
    • Line 27: warning: exported method Stack.Len should have comment or be unexported (golint)
    • Line 31: warning: exported method Stack.Empty should have comment or be unexported (golint)
    • awesome-golang-leetcode/lcof/of009/Solution.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 5: warning: exported type CQueue should have comment or be unexported (golint)
    • Line 9: warning: exported function Constructor should have comment or be unexported (golint)
    • Line 16: warning: exported method CQueue.AppendTail should have comment or be unexported (golint)
    • Line 16: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 20: warning: exported method CQueue.DeleteHead should have comment or be unexported (golint)
    • Line 20: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • awesome-golang-leetcode/leetcode/201-300/0208.Implement-Trie/Solution.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 3: warning: exported type Trie should have comment or be unexported (golint)
    • Line 8: warning: exported function Constructor should have comment or be unexported (golint)
    • Line 15: warning: exported method Trie.Insert should have comment or be unexported (golint)
    • Line 15: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 29: warning: exported method Trie.Search should have comment or be unexported (golint)
    • Line 29: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 41: warning: exported method Trie.StartsWith should have comment or be unexported (golint)
    • Line 41: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • awesome-golang-leetcode/cmd/contribution.go
    • Line 11: warning: exported type Contributor should have comment or be unexported (golint)
    • Line 13: warning: don't use underscores in Go names; struct field Avatar_Url should be AvatarURL (golint)
    • Line 21: warning: exported const GITHUB_CONTRIBUTOR_API_URL should have comment or be unexported (golint)
    • Line 22: warning: exported const GITHUB_CONTRIBUTOR_TMPL_PATH should have comment or be unexported (golint)
    • Line 26: warning: don't use underscores in Go names; var contributor_buffer should be contributorBuffer (golint)
    • Line 31: warning: exported function GetContributorString should have comment or be unexported (golint)
    • Line 36: warning: comment on exported function GetContributorJosnMarshal should be of the form "GetContributorJosnMarshal ..." (golint)
    • Line 44: warning: don't use underscores in Go names; var contributors_buffer should be contributorsBuffer (golint)
    • Line 52: warning: exported function GetContributorInstance should have comment or be unexported (golint)
    • Line 65: warning: exported function GenerateContributorTemplete should have comment or be unexported (golint)
    • Line 66: warning: don't use underscores in Go names; var tpl_str should be tplStr (golint)
    • awesome-golang-leetcode/lcof/of030/Solution.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 3: warning: exported type MinStack should have comment or be unexported (golint)
    • Line 8: warning: comment on exported function Constructor should be of the form "Constructor ..." (golint)
    • Line 16: warning: exported method MinStack.Push should have comment or be unexported (golint)
    • Line 25: warning: exported method MinStack.Pop should have comment or be unexported (golint)
    • Line 30: warning: exported method MinStack.Top should have comment or be unexported (golint)
    • Line 34: warning: exported method MinStack.Min should have comment or be unexported (golint)
    • awesome-golang-leetcode/lcof/of025/Solution.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 3: warning: exported function Solution should have comment or be unexported (golint)
    • Line 7: warning: exported type ListNode should have comment or be unexported (golint)
    • Line 23: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • awesome-golang-leetcode/leetcode/1-100/0024.Swap-Nodes-in-Pairs/ListNode.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 8: warning: exported type ListNode should have comment or be unexported (golint)
    • Line 13: warning: comment on exported function Solution should be of the form "Solution ..." (golint)
    • Line 41: warning: exported function PrintList should have comment or be unexported (golint)
    • Line 49: warning: comment on exported function UnmarshalListBySlice should be of the form "UnmarshalListBySlice ..." (golint)
    • Line 60: warning: comment on exported function UnmarshalListByRand should be of the form "UnmarshalListByRand ..." (golint)
    • Line 61: warning: don't use underscores in Go names; func parameter max_num should be maxNum (golint)
    • awesome-golang-leetcode/leetcode/101-200/0146.LRU-Cache/Solution.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 8: warning: exported type LRUCache should have comment or be unexported (golint)
    • Line 14: warning: exported function Constructor should have comment or be unexported (golint)
    • Line 22: warning: exported method LRUCache.Get should have comment or be unexported (golint)
    • Line 22: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 35: warning: exported method LRUCache.Put should have comment or be unexported (golint)
    • Line 35: 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 LRUCache.Print 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)
    • awesome-golang-leetcode/cmd/leetcode/makedir.go
    • Line 10: warning: exported const SOLUTIONS_PATH should have comment or be unexported (golint)
    • Line 11: warning: exported const SOURCE_SOLUTION_FILE_PATH should have comment or be unexported (golint)
    • Line 12: warning: exported const SOURCE_SOLUTION_TEST_FILE_PATH should have comment or be unexported (golint)
    • Line 13: warning: exported const SOURCE_SOLUTION_README_FILE_PATH should have comment or be unexported (golint)
    • Line 15: warning: comment on exported function MakeDir should be of the form "MakeDir ..." (golint)
    • Line 31: warning: don't use underscores in Go names; var is_DirExists should be isDirExists (golint)
    • Line 56: warning: don't use underscores in Go names; var source_open should be sourceOpen (golint)
    • Line 64: warning: don't use underscores in Go names; var dest_open should be destOpen (golint)
    • Line 72: warning: don't use underscores in Go names; var copy_err should be copyErr (golint)
    • Line 76: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 106: warning: exported function PathExists should have comment or be unexported (golint)
    • awesome-golang-leetcode/lcof/of059-II/Solution_test.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 13: warning: don't use underscores in Go names; var param_1 should be param1 (golint)
    • Line 14: warning: don't use underscores in Go names; var param_2 should be param2 (golint)
    • Line 15: warning: don't use underscores in Go names; var param_3 should be param3 (golint)
    • awesome-golang-leetcode/lib/Search.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 3: warning: comment on exported function BinarySearch should be of the form "BinarySearch ..." (golint)
    • Line 21: warning: comment on exported function BinarySearchLeftBound should be of the form "BinarySearchLeftBound ..." (golint)
    • Line 42: warning: comment on exported function BinarySearchRightBound should be of the form "BinarySearchRightBound ..." (golint)
    • awesome-golang-leetcode/leetcode/101-200/0101.Symmetric-Tree/List.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 8: warning: comment on exported type SingleObject should be of the form "SingleObject ..." (with optional leading article) (golint)
    • Line 11: warning: comment on exported type SingleNode should be of the form "SingleNode ..." (with optional leading article) (golint)
    • Line 17: warning: comment on exported type SingleList should be of the form "SingleList ..." (with optional leading article) (golint)
    • Line 25: warning: comment on exported method SingleList.Init should be of the form "Init ..." (golint)
    • Line 33: warning: comment on exported method SingleList.Append should be of the form "Append ..." (golint)
    • Line 54: warning: comment on exported method SingleList.Insert should be of the form "Insert ..." (golint)
    • Line 85: warning: comment on exported method SingleList.Delete should be of the form "Delete ..." (golint)
    • Line 119: warning: comment on exported method SingleList.Get should be of the form "Get ..." (golint)
    • Line 139: warning: comment on exported method SingleList.Display should be of the form "Display ..." (golint)
    • awesome-golang-leetcode/cmd/sitemap/sitemap.go
    • Line 8: warning: exported type Config should have comment or be unexported (golint)
    • Line 12: warning: exported type SiteMap should have comment or be unexported (golint)
    • Line 16: warning: exported function New should have comment or be unexported (golint)
    • Line 24: warning: exported type UrlSet should have comment or be unexported (golint)
    • Line 28: warning: exported type Url should have comment or be unexported (golint)
    • awesome-golang-leetcode/lib/ListNode.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 8: warning: exported type ListNode should have comment or be unexported (golint)
    • Line 13: warning: comment on exported function IsEqual should be of the form "IsEqual ..." (golint)
    • Line 32: warning: exported function PrintList should have comment or be unexported (golint)
    • Line 40: warning: comment on exported function UnmarshalListBySlice should be of the form "UnmarshalListBySlice ..." (golint)
    • Line 51: warning: comment on exported function UnmarshalListByRand should be of the form "UnmarshalListByRand ..." (golint)
    • Line 52: warning: don't use underscores in Go names; func parameter max_num should be maxNum (golint)
    • awesome-golang-leetcode/leetcode/101-200/0148.Sort-List/ListNode.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 8: warning: exported type ListNode should have comment or be unexported (golint)
    • Line 13: warning: comment on exported function Solution should be of the form "Solution ..." (golint)
    • Line 41: warning: exported function PrintList should have comment or be unexported (golint)
    • Line 49: warning: comment on exported function UnmarshalListBySlice should be of the form "UnmarshalListBySlice ..." (golint)
    • Line 60: warning: comment on exported function UnmarshalListByRand should be of the form "UnmarshalListByRand ..." (golint)
    • Line 61: warning: don't use underscores in Go names; func parameter max_num should be maxNum (golint)
    • awesome-golang-leetcode/lcof/of037/Solution.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 8: warning: exported type TreeNode should have comment or be unexported (golint)
    • Line 14: warning: exported type Codec should have comment or be unexported (golint)
    • Line 17: warning: exported function Constructor 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 41: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • awesome-golang-leetcode/leetcode/101-200/0143.Reorder-List/ListNode.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 8: warning: exported type ListNode should have comment or be unexported (golint)
    • Line 32: warning: exported function PrintList should have comment or be unexported (golint)
    • Line 40: warning: comment on exported function UnmarshalListBySlice should be of the form "UnmarshalListBySlice ..." (golint)
    • Line 51: warning: comment on exported function UnmarshalListByRand should be of the form "UnmarshalListByRand ..." (golint)
    • Line 52: warning: don't use underscores in Go names; func parameter max_num should be maxNum (golint)
    • awesome-golang-leetcode/leetcode/701-800/0703.Kth-Largest-Element-in-a-Stream/Solution1.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 8: warning: exported type KthLargest1 should have comment or be unexported (golint)
    • Line 13: warning: exported function Constructor1 should have comment or be unexported (golint)
    • Line 18: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 40: warning: comment on exported method KthLargest1.Add should be of the form "Add ..." (golint)
    • Line 41: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 51: warning: comment on exported function InsertSort should be of the form "InsertSort ..." (golint)
    • awesome-golang-leetcode/leetcode/101-200/0147.Insertion-Sort-List/ListNode.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 8: warning: exported type ListNode should have comment or be unexported (golint)
    • Line 32: warning: exported function PrintList should have comment or be unexported (golint)
    • Line 40: warning: comment on exported function UnmarshalListBySlice should be of the form "UnmarshalListBySlice ..." (golint)
    • Line 51: warning: comment on exported function UnmarshalListByRand should be of the form "UnmarshalListByRand ..." (golint)
    • Line 52: warning: don't use underscores in Go names; func parameter max_num should be maxNum (golint)
    • awesome-golang-leetcode/leetcode/1-100/0001.Two-Sum/Solution.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 3: warning: exported function TwoSum1 should have comment or be unexported (golint)
    • Line 18: warning: exported function TwoSum2 should have comment or be unexported (golint)
    • Line 26: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 34: warning: exported function TwoSum3 should have comment or be unexported (golint)
    • awesome-golang-leetcode/leetcode/101-200/0142.Linked-List-Cycle-II/ListNode.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 8: warning: exported type ListNode should have comment or be unexported (golint)
    • Line 41: warning: exported function PrintList should have comment or be unexported (golint)
    • Line 49: warning: comment on exported function UnmarshalListBySlice should be of the form "UnmarshalListBySlice ..." (golint)
    • Line 60: warning: comment on exported function UnmarshalListByRand should be of the form "UnmarshalListByRand ..." (golint)
    • Line 61: warning: don't use underscores in Go names; func parameter max_num should be maxNum (golint)
    • awesome-golang-leetcode/leetcode/201-300/0232.Implement-Queue-using-Stacks/Solution.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 3: warning: exported type MyQueue should have comment or be unexported (golint)
    • Line 7: warning: exported function Constructor should have comment or be unexported (golint)
    • Line 17: warning: exported method MyQueue.Peek should have comment or be unexported (golint)
    • Line 32: warning: exported method MyQueue.Push should have comment or be unexported (golint)
    • Line 36: warning: exported method MyQueue.Pop should have comment or be unexported (golint)
    • Line 51: warning: exported method MyQueue.Empty should have comment or be unexported (golint)
    • awesome-golang-leetcode/leetcode/1-100/0032.Longest-Valid-Parentheses/Stack.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 7: warning: exported type Stack should have comment or be unexported (golint)
    • Line 11: warning: comment on exported method Stack.Push should be of the form "Push ..." (golint)
    • Line 16: warning: exported method Stack.Pop should have comment or be unexported (golint)
    • Line 22: warning: exported method Stack.Top should have comment or be unexported (golint)
    • Line 26: warning: exported method Stack.Len should have comment or be unexported (golint)
    • Line 29: warning: exported method Stack.IsEmpty should have comment or be unexported (golint)
    • Line 36: warning: exported function NewStack should have comment or be unexported (golint)
    • awesome-golang-leetcode/leetcode/201-300/0215.Kth-Largest-Element-in-an-Array/heap.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 3: warning: exported type IntMinHeap should have comment or be unexported (golint)
    • Line 9: warning: exported method IntMinHeap.Push should have comment or be unexported (golint)
    • Line 13: warning: exported method IntMinHeap.Pop should have comment or be unexported (golint)
    • Line 21: warning: exported type IntMaxHeap should have comment or be unexported (golint)
    • Line 27: warning: exported method IntMaxHeap.Push should have comment or be unexported (golint)
    • Line 31: warning: exported method IntMaxHeap.Pop should have comment or be unexported (golint)
    • awesome-golang-leetcode/leetcode/1-100/0023.Merge-k-Sorted-Lists/ListNode.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 8: warning: exported type ListNode should have comment or be unexported (golint)
    • Line 32: warning: exported function PrintList should have comment or be unexported (golint)
    • Line 40: warning: comment on exported function UnmarshalListBySlice should be of the form "UnmarshalListBySlice ..." (golint)
    • Line 51: warning: comment on exported function UnmarshalListByRand should be of the form "UnmarshalListByRand ..." (golint)
    • Line 52: warning: don't use underscores in Go names; func parameter max_num should be maxNum (golint)
    • awesome-golang-leetcode/leetcode/601-700/0676.Implement-Magic-Dictionary/Solution.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 3: warning: exported type MagicDictionary should have comment or be unexported (golint)
    • Line 8: warning: comment on exported function Constructor should be of the form "Constructor ..." (golint)
    • Line 13: warning: exported method MagicDictionary.Insert should have comment or be unexported (golint)
    • Line 30: warning: comment on exported method MagicDictionary.BuildDict should be of the form "BuildDict ..." (golint)
    • Line 37: warning: comment on exported method MagicDictionary.SearchHelper should be of the form "SearchHelper ..." (golint)
    • Line 63: warning: comment on exported method MagicDictionary.Search should be of the form "Search ..." (golint)
    • awesome-golang-leetcode/leetcode/1-100/0045.Jump-Game-II/Solution.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 68: warning: don't use underscores in Go names; var current_max_index should be currentMaxIndex (golint)
    • Line 68: warning: don't use underscores in Go names; var pre_max_max_index should be preMaxMaxIndex (golint)
    • Line 68: warning: don't use underscores in Go names; var jump_min should be jumpMin (golint)
    • Line 86: warning: exported function Min should have comment or be unexported (golint)
    • awesome-golang-leetcode/cmd/util.go
    • Line 11: warning: comment on exported function ReadFile should be of the form "ReadFile ..." (golint)
    • Line 23: warning: comment on exported function WriteFile should be of the form "WriteFile ..." (golint)
    • Line 31: warning: comment on exported function Request should be of the form "Request ..." (golint)
    • Line 42: warning: don't use underscores in Go names; var resp_data should be respData (golint)
    • Line 54: warning: exported function ReadRequest should have comment or be unexported (golint)
    • Line 55: warning: don't use underscores in Go names; var req_buffer should be reqBuffer (golint)
    • awesome-golang-leetcode/leetcode/1-100/0082.Remove-Duplicates-from-Sorted-List-II/ListNode.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 8: warning: exported type ListNode should have comment or be unexported (golint)
    • Line 32: warning: exported function PrintList should have comment or be unexported (golint)
    • Line 40: warning: comment on exported function UnmarshalListBySlice should be of the form "UnmarshalListBySlice ..." (golint)
    • Line 51: warning: comment on exported function UnmarshalListByRand should be of the form "UnmarshalListByRand ..." (golint)
    • Line 52: warning: don't use underscores in Go names; func parameter max_num should be maxNum (golint)
    • awesome-golang-leetcode/lib/heap.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 3: warning: exported type IntMinHeap should have comment or be unexported (golint)
    • Line 9: warning: exported method IntMinHeap.Push should have comment or be unexported (golint)
    • Line 13: warning: exported method IntMinHeap.Pop should have comment or be unexported (golint)
    • Line 21: warning: exported type IntMaxHeap should have comment or be unexported (golint)
    • Line 27: warning: exported method IntMaxHeap.Push should have comment or be unexported (golint)
    • Line 31: warning: exported method IntMaxHeap.Pop should have comment or be unexported (golint)
    • awesome-golang-leetcode/cmd/github/contribution.go
    • Line 9: warning: exported type Contributor should have comment or be unexported (golint)
    • Line 11: warning: don't use underscores in Go names; struct field Avatar_Url should be AvatarURL (golint)
    • Line 15: warning: exported const GITHUB_CONTRIBUTOR_API_URL should have comment or be unexported (golint)
    • Line 16: warning: exported const GITHUB_CONTRIBUTOR_TMPL_PATH should have comment or be unexported (golint)
    • Line 33: warning: exported function GetContributorString should have comment or be unexported (golint)
    • awesome-golang-leetcode/cmd/leetcode.go
    • Line 3: warning: exported type LeetCode should have comment or be unexported (golint)
    • Line 16: warning: comment on exported type Problem should be of the form "Problem ..." (with optional leading article) (golint)
    • Line 27: warning: exported type Stat should have comment or be unexported (golint)
    • Line 40: warning: exported type Difficulty should have comment or be unexported (golint)
    • Line 44: warning: exported function GetAllleetcodeInstance should have comment or be unexported (golint)
    • awesome-golang-leetcode/leetcode/1-100/0061.Rotate-List/ListNode.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 8: warning: exported type ListNode should have comment or be unexported (golint)
    • Line 32: warning: exported function PrintList should have comment or be unexported (golint)
    • Line 40: warning: comment on exported function UnmarshalListBySlice should be of the form "UnmarshalListBySlice ..." (golint)
    • Line 51: warning: comment on exported function UnmarshalListByRand should be of the form "UnmarshalListByRand ..." (golint)
    • Line 52: warning: don't use underscores in Go names; func parameter max_num should be maxNum (golint)
    • awesome-golang-leetcode/lcof/of003/Solution.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 8: warning: should omit 2nd value from range; this loop is equivalent to `for idx := range ...` (golint)
    • Line 24: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • awesome-golang-leetcode/leetcode/1-100/0092.Reverse-Linked-List-II/ListNode.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 8: warning: exported type ListNode should have comment or be unexported (golint)
    • Line 41: warning: exported function PrintList should have comment or be unexported (golint)
    • Line 50: warning: comment on exported function UnmarshalListBySlice should be of the form "UnmarshalListBySlice ..." (golint)
    • Line 61: warning: comment on exported function UnmarshalListByRand should be of the form "UnmarshalListByRand ..." (golint)
    • Line 62: warning: don't use underscores in Go names; func parameter max_num should be maxNum (golint)
    • awesome-golang-leetcode/lib/TreeNode.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 8: warning: exported type TreeNode should have comment or be unexported (golint)
    • Line 14: warning: exported function GenTree should have comment or be unexported (golint)
    • Line 19: warning: exported function GenTreeHelp should have comment or be unexported (golint)
    • awesome-golang-leetcode/leetcode/1-100/0023.Merge-k-Sorted-Lists/Solution1.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 20: warning: comment on exported function InertSort should be of the form "InertSort ..." (golint)
    • Line 33: warning: comment on exported function QuickSort should be of the form "QuickSort ..." (golint)
    • Line 42: warning: don't use underscores in Go names; var low_part should be lowPart (golint)
    • Line 43: warning: don't use underscores in Go names; var high_part should be highPart (golint)
    • Line 44: warning: don't use underscores in Go names; var middle_part should be middlePart (golint)
    • Line 66: warning: comment on exported function MarshalListNodeToSlice should be of the form "MarshalListNodeToSlice ..." (golint)
    • Line 76: warning: comment on exported function MarshalSliceToListNode should be of the form "MarshalSliceToListNode ..." (golint)
    • awesome-golang-leetcode/leetcode/201-300/0225.Implement-Stack-using-Queues/Solution.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 3: warning: exported type MyStack should have comment or be unexported (golint)
    • Line 8: warning: comment on exported function Constructor should be of the form "Constructor ..." (golint)
    • Line 14: warning: comment on exported method MyStack.Push should be of the form "Push ..." (golint)
    • Line 15: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 20: warning: comment on exported method MyStack.Pop should be of the form "Pop ..." (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 45: warning: comment on exported method MyStack.Top should be of the form "Top ..." (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 56: warning: comment on exported method MyStack.Empty should be of the form "Empty ..." (golint)
    • Line 57: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • awesome-golang-leetcode/lib/Queue.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 3: warning: exported type Queue should have comment or be unexported (golint)
    • Line 23: warning: exported method Queue.Push should have comment or be unexported (golint)
    • Line 28: warning: exported method Queue.Pop should have comment or be unexported (golint)
    • awesome-golang-leetcode/lcof/of059-II/Solution.go
    • Line 1: warning: don't use MixedCaps in package name; Solution should be solution (golint)
    • Line 7: warning: exported type MaxQueue should have comment or be unexported (golint)
    • Line 12: warning: exported function Constructor should have comment or be unexported (golint)
    • Line 19: warning: exported method MaxQueue.Max_value should have comment or be unexported (golint)
    • Line 19: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 19: warning: don't use underscores in Go names; method Max_value should be MaxValue (golint)
    • Line 26: warning: exported method MaxQueue.Push_back should have comment or be unexported (golint)
    • Line 26: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 26: warning: don't use underscores in Go names; method Push_back should be PushBack (golint)
    • Line 36: warning: exported method MaxQueue.Pop_front 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 36: warning: don't use underscores in Go names; method Pop_front should be PopFront (golint)

gocyclo99%

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.


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!