Preparing report...

Report for github.com/linehk/go-problems

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


gocyclo100%

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.

No problems detected. Good job!


golint53%

Golint is a linter for Go source code.

    • go-problems/offer/utils/utils.go
    • Line 7: warning: exported type Stack should have comment or be unexported (golint)
    • Line 11: warning: exported function NewStack should have comment or be unexported (golint)
    • Line 16: warning: exported method Stack.Push should have comment or be unexported (golint)
    • Line 20: warning: exported method Stack.Pop should have comment or be unexported (golint)
    • Line 29: warning: exported method Stack.Len should have comment or be unexported (golint)
    • Line 33: warning: exported method Stack.Empty should have comment or be unexported (golint)
    • go-problems/leetcode/easy/design/0384_shuffle_an_array/0384_shuffle_an_array.go
    • Line 7: warning: exported type Solution should have comment or be unexported (golint)
    • Line 12: warning: exported function Constructor should have comment or be unexported (golint)
    • Line 21: warning: comment on exported method Solution.Reset should be of the form "Reset ..." (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 26: warning: comment on exported method Solution.Shuffle should be of the form "Shuffle ..." (golint)
    • Line 27: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • go-problems/leetcode/easy/design/0155_min_stack/0155_min_stack.go
    • Line 3: warning: exported type MinStack should have comment or be unexported (golint)
    • Line 12: warning: comment on exported function Constructor should be of the form "Constructor ..." (golint)
    • Line 17: warning: comment on exported method MinStack.Push should be of the form "Push ..." (golint)
    • Line 20: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 28: warning: comment on exported method MinStack.Pop should be of the form "Pop ..." (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 33: warning: comment on exported method MinStack.Top should be of the form "Top ..." (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 MinStack.GetMin should be of the form "GetMin ..." (golint)
    • Line 39: 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!


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!