Preparing report...

Report for github.com/linnv/leetcode

A+    Excellent!    Found 14 issues across 154 files

Tweet

gofmt97%

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!


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.


golint94%

Golint is a linter for Go source code.

    • leetcode/implementTrie.go
    • Line 3: warning: exported method Trie.Insert should have comment or be unexported (golint)
    • Line 31: warning: exported method Trie.Search should have comment or be unexported (golint)
    • Line 38: warning: exported method Trie.StartWith should have comment or be unexported (golint)
    • Line 69: warning: exported method Trie.GetWordsStartWith should have comment or be unexported (golint)
    • Line 78: warning: exported method Trie.GetAllWords should have comment or be unexported (golint)
    • leetcode/structs.go
    • Line 3: warning: exported type TreeNode should have comment or be unexported (golint)
    • Line 9: warning: exported type ListNode should have comment or be unexported (golint)
    • Line 14: warning: exported type Trie should have comment or be unexported (golint)
    • Line 20: warning: exported function NewTrie should have comment or be unexported (golint)
    • Line 27: warning: exported method ListNode.ToArray should have comment or be unexported (golint)
    • Line 38: warning: exported method TreeNode.MidOrderData should have comment or be unexported (golint)
    • Line 48: warning: exported method TreeNode.PreOrderData should have comment or be unexported (golint)
    • Line 58: warning: exported method TreeNode.PosOrderData should have comment or be unexported (golint)
    • Line 68: warning: exported method TreeNode.LevelData should have comment or be unexported (golint)
    • leetcode/tree2doublelist.go
    • Line 3: warning: exported function Tree2DoubleLinkedList should have comment or be unexported (golint)
    • Line 22: warning: exported function ToLeftYah should have comment or be unexported (golint)
    • Line 38: warning: exported function ToLeft should have comment or be unexported (golint)
    • leetcode/121BestTimeToBuyAndSellStock.go
    • Line 3: warning: comment on exported function BestTimeToBuyAndSellStockViolence should be of the form "BestTimeToBuyAndSellStockViolence ..." (golint)
    • Line 22: warning: comment on exported function BestTimeToBuyAndSellStock should be of the form "BestTimeToBuyAndSellStock ..." (golint)
    • leetcode/groupAnagrams.go
    • Line 33: warning: exported function QuickSort should have comment or be unexported (golint)
    • Line 61: warning: exported function GroupAnagrams should have comment or be unexported (golint)
    • Line 65: warning: exported function GroupAnagramsTimeout should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!