Preparing report...

Report for github.com/a8m/djson

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


gocyclo71%

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.

    • djson/bytes.go
    • Line 27: warning: cyclomatic complexity 29 of function unquoteBytes() is high (> 15) (gocyclo)
    • djson/decode.go
    • Line 127: warning: cyclomatic complexity 26 of function (*Decoder).any() is high (> 15) (gocyclo)
    • Line 183: warning: cyclomatic complexity 22 of function (*Decoder).string() is high (> 15) (gocyclo)
    • Line 259: warning: cyclomatic complexity 22 of function (*Decoder).number() is high (> 15) (gocyclo)

golint85%

Golint is a linter for Go source code.

    • djson/interface.go
    • Line 26: warning: exported const Null should have comment (or a comment on this block) or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign71%

IneffAssign detects ineffectual assignments in Go code.

    • djson/benchmark/benchmark_test.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 10: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/Jeffail/gabs (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/a8m/djson (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/antonholmquist/jason (invalid package name: "") (ineffassign)
    • Line 10: warning: could not import github.com/bitly/go-simplejson (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/mreiferson/go-ujson (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/ugorji/go/codec (invalid package name: "") (ineffassign)
    • Line 87: warning: undeclared name: simplejson (ineffassign)
    • Line 93: warning: undeclared name: simplejson (ineffassign)
    • Line 99: warning: undeclared name: simplejson (ineffassign)
    • Line 127: warning: undeclared name: ujson (ineffassign)
    • Line 133: warning: undeclared name: ujson (ineffassign)
    • Line 139: warning: undeclared name: ujson (ineffassign)
    • Line 10: warning: "github.com/bitly/go-simplejson" imported but not used (ineffassign)
    • Line 11: warning: "github.com/mreiferson/go-ujson" imported but not used (ineffassign)
    • djson/example_test.go
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/a8m/djson (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!