Preparing report...

Report for github.com/antchfx/jsonquery

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

    • jsonquery/query.go
    • Line 78: warning: exported method NodeNavigator.Current should have comment or be unexported (golint)
    • Line 82: warning: exported method NodeNavigator.NodeType should have comment or be unexported (golint)
    • Line 95: warning: exported method NodeNavigator.LocalName should have comment or be unexported (golint)
    • Line 100: warning: exported method NodeNavigator.Prefix should have comment or be unexported (golint)
    • Line 104: warning: exported method NodeNavigator.Value should have comment or be unexported (golint)
    • Line 114: warning: exported method NodeNavigator.Copy should have comment or be unexported (golint)
    • Line 119: warning: exported method NodeNavigator.MoveToRoot should have comment or be unexported (golint)
    • Line 123: warning: exported method NodeNavigator.MoveToParent should have comment or be unexported (golint)
    • Line 131: warning: exported method NodeNavigator.MoveToNextAttribute should have comment or be unexported (golint)
    • Line 131: warning: receiver name x should be consistent with previous receiver name a for NodeNavigator (golint)
    • Line 135: warning: exported method NodeNavigator.MoveToChild should have comment or be unexported (golint)
    • Line 143: warning: exported method NodeNavigator.MoveToFirst should have comment or be unexported (golint)
    • Line 154: warning: exported method NodeNavigator.MoveToNext should have comment or be unexported (golint)
    • Line 162: warning: exported method NodeNavigator.MoveToPrevious should have comment or be unexported (golint)
    • Line 170: warning: exported method NodeNavigator.MoveTo should have comment or be unexported (golint)

gocyclo80%

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.


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!