Preparing report...

Report for github.com/spyzhov/ajson

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


golint80%

Golint is a linter for Go source code.

    • ajson/math.go
    • Line 345: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 397: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • ajson/internal/state.go
    • Line 1: warning: package comment should be of the form "Package internal ..." (golint)
    • Line 8: warning: exported type States should have comment or be unexported (golint)
    • Line 9: warning: exported type Classes should have comment or be unexported (golint)
    • Line 45: warning: don't use underscores in Go names; const C_E should be CE (golint)

gocyclo57%

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.

    • ajson/node.go
    • Line 613: warning: cyclomatic complexity 22 of function (*Node).Eq() is high (> 15) (gocyclo)
    • ajson/quote.go
    • Line 223: warning: cyclomatic complexity 19 of function quoteString() is high (> 15) (gocyclo)
    • ajson/buffer.go
    • Line 337: warning: cyclomatic complexity 61 of function (*buffer).rpn() is high (> 15) (gocyclo)
    • Line 509: warning: cyclomatic complexity 37 of function (*buffer).tokenize() is high (> 15) (gocyclo)
    • Line 248: warning: cyclomatic complexity 35 of function (*buffer).token() is high (> 15) (gocyclo)
    • ajson/encode.go
    • Line 8: warning: cyclomatic complexity 21 of function Marshal() is high (> 15) (gocyclo)
    • ajson/jsonpath.go
    • Line 310: warning: cyclomatic complexity 81 of function deReference() is high (> 15) (gocyclo)
    • Line 203: warning: cyclomatic complexity 33 of function ParseJSONPath() is high (> 15) (gocyclo)
    • Line 581: warning: cyclomatic complexity 23 of function eval() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!