Preparing report...

Report for github.com/mojo-zd/go-library

A    Great!    Found 9 issues across 13 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!


gocyclo84%

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.

    • go-library/debug/debuger.go
    • Line 114: warning: cyclomatic complexity 54 of function printKeyValue() is high (> 15) (gocyclo)
    • Line 324: warning: cyclomatic complexity 17 of function isSimpleType() is high (> 15) (gocyclo)

golint53%

Golint is a linter for Go source code.

    • go-library/string.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 8: warning: comment on exported function ToUnderLineLower should be of the form "ToUnderLineLower ..." (golint)
    • go-library/reflect/reflect.go
    • Line 7: warning: exported function NewInstance should have comment or be unexported (golint)
    • Line 12: warning: exported function GetType should have comment or be unexported (golint)
    • Line 21: warning: exported function GetValue should have comment or be unexported (golint)
    • go-library/traverse/iterator.go
    • Line 9: warning: exported type CYCLE_FLAG should have comment or be unexported (golint)
    • Line 13: warning: exported const BREAK_FLAT should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type IteratorFunc should have comment or be unexported (golint)
    • Line 20: warning: exported function Iterator should have comment or be unexported (golint)
    • Line 37: warning: comment on exported function Contains should be of the form "Contains ..." (golint)
    • go-library/traverse/maps.go
    • Line 9: warning: exported type MapHandleFunc should have comment or be unexported (golint)
    • Line 10: warning: exported type MapIteratorHandleFun should have comment or be unexported (golint)
    • Line 12: warning: exported function MapIterator should have comment or be unexported (golint)
    • Line 23: warning: comment on exported function ContainsKey should be of the form "ContainsKey ..." (golint)
    • Line 39: warning: exported function ContainsValue should have comment or be unexported (golint)
    • Line 54: warning: comment on exported function StructsToMap should be of the form "StructsToMap ..." (golint)
    • Line 82: warning: exported function GetValueByName should have comment or be unexported (golint)
    • go-library/http/http_request.go
    • Line 19: warning: exported type RequestInfo should have comment or be unexported (golint)
    • Line 27: warning: exported type ResponseInfo should have comment or be unexported (golint)
    • Line 33: warning: exported type HttpClient should have comment or be unexported (golint)
    • Line 37: warning: exported function NewHttpClient should have comment or be unexported (golint)
    • Line 41: warning: exported method HttpClient.Get should have comment or be unexported (golint)
    • Line 46: warning: exported method HttpClient.Post should have comment or be unexported (golint)
    • Line 51: warning: exported method HttpClient.Put should have comment or be unexported (golint)
    • Line 56: warning: exported method HttpClient.Delete should have comment or be unexported (golint)
    • Line 96: warning: exported method HttpClient.BuildRequestInfo should have comment or be unexported (golint)
    • Line 123: warning: exported method HttpClient.BuildURL should have comment or be unexported (golint)
    • go-library/pagination/pagination.go
    • Line 3: warning: exported type Pagination should have comment or be unexported (golint)
    • Line 11: warning: exported method Pagination.Offset should have comment or be unexported (golint)
    • Line 19: warning: exported method Pagination.SetTotal should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.


misspell92%

Misspell Finds commonly misspelled English words