Preparing report...

Report for github.com/jmank88/ubjson

A+    Excellent!    Found 4 issues across 20 files

Tweet

gofmt95%

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!


gocyclo85%

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.

    • ubjson/decode.go
    • Line 488: warning: cyclomatic complexity 36 of function (*Decoder).Decode() is high (> 15) (gocyclo)
    • Line 212: warning: cyclomatic complexity 20 of function (*Decoder).decodeInterface() is high (> 15) (gocyclo)
    • ubjson/bench_test.go
    • Line 455: warning: cyclomatic complexity 30 of function (*benchValue).UnmarshalUBJSON() is high (> 15) (gocyclo)
    • Line 366: warning: cyclomatic complexity 27 of function (*benchValue).MarshalUBJSON() is high (> 15) (gocyclo)

golint95%

Golint is a linter for Go source code.

    • ubjson/ubjson_test.go
    • Line 141: warning: don't use underscores in Go names; struct field Total_private_repos should be TotalPrivateRepos (golint)
    • Line 143: warning: don't use underscores in Go names; struct field Gravatar_id should be GravatarID (golint)
    • Line 148: warning: don't use underscores in Go names; struct field Public_gists should be PublicGists (golint)
    • Line 149: warning: don't use underscores in Go names; struct field Html_url should be HTMLURL (golint)
    • Line 153: warning: don't use underscores in Go names; struct field Created_at should be CreatedAt (golint)
    • Line 154: warning: don't use underscores in Go names; struct field Owned_private_repos should be OwnedPrivateRepos (golint)
    • Line 158: warning: don't use underscores in Go names; struct field Public_repos should be PublicRepos (golint)
    • Line 159: warning: don't use underscores in Go names; struct field Private_gists should be PrivateGists (golint)
    • Line 160: warning: don't use underscores in Go names; struct field Disk_usage should be DiskUsage (golint)
    • Line 162: warning: don't use underscores in Go names; struct field Avatar_url should be AvatarURL (golint)
    • Line 169: warning: don't use underscores in Go names; struct field Private_repos should be PrivateRepos (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!