Preparing report...

Report for github.com/ecoshub/jin

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


gocyclo75%

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.

    • jin/inter_add.go
    • Line 141: warning: cyclomatic complexity 25 of function Insert() is high (> 15) (gocyclo)
    • Line 8: warning: cyclomatic complexity 19 of function AddKeyValue() is high (> 15) (gocyclo)
    • Line 78: warning: cyclomatic complexity 17 of function Add() is high (> 15) (gocyclo)
    • jin/parse_core.go
    • Line 5: warning: cyclomatic complexity 24 of function nCore() is high (> 15) (gocyclo)
    • Line 120: warning: cyclomatic complexity 24 of function pCore() is high (> 15) (gocyclo)
    • jin/parse_get.go
    • Line 257: warning: cyclomatic complexity 23 of function (*Parser).GetBoolArray() is high (> 15) (gocyclo)
    • Line 191: warning: cyclomatic complexity 19 of function (*Parser).GetFloatArray() is high (> 15) (gocyclo)
    • Line 125: warning: cyclomatic complexity 19 of function (*Parser).GetIntArray() is high (> 15) (gocyclo)
    • jin/others.go
    • Line 5: warning: cyclomatic complexity 21 of function Length() is high (> 15) (gocyclo)
    • Line 185: warning: cyclomatic complexity 17 of function ParseArray() is high (> 15) (gocyclo)
    • jin/inter_iter.go
    • Line 102: warning: cyclomatic complexity 43 of function IterateKeyValue() is high (> 15) (gocyclo)
    • Line 6: warning: cyclomatic complexity 27 of function IterateArray() is high (> 15) (gocyclo)
    • jin/parse_add.go
    • Line 223: warning: cyclomatic complexity 31 of function (*Parser).Insert() is high (> 15) (gocyclo)
    • Line 8: warning: cyclomatic complexity 28 of function (*Parser).AddKeyValue() is high (> 15) (gocyclo)
    • Line 117: warning: cyclomatic complexity 25 of function (*Parser).Add() is high (> 15) (gocyclo)
    • jin/inter_get.go
    • Line 494: warning: cyclomatic complexity 26 of function GetKeysValues() is high (> 15) (gocyclo)
    • Line 402: warning: cyclomatic complexity 25 of function GetValues() is high (> 15) (gocyclo)
    • Line 312: warning: cyclomatic complexity 24 of function GetKeys() is high (> 15) (gocyclo)
    • Line 237: warning: cyclomatic complexity 23 of function GetBoolArray() is high (> 15) (gocyclo)
    • Line 105: warning: cyclomatic complexity 19 of function GetIntArray() is high (> 15) (gocyclo)
    • Line 171: warning: cyclomatic complexity 19 of function GetFloatArray() is high (> 15) (gocyclo)

golint96%

Golint is a linter for Go source code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign84%

IneffAssign detects ineffectual assignments in Go code.

    • jin/jin_object_add.go
    • Line 6: warning: ineffectual assignment to j (ineffassign)
    • Line 13: warning: ineffectual assignment to j (ineffassign)
    • Line 20: warning: ineffectual assignment to j (ineffassign)
    • Line 27: warning: ineffectual assignment to j (ineffassign)
    • Line 34: warning: ineffectual assignment to j (ineffassign)
    • Line 41: warning: ineffectual assignment to j (ineffassign)
    • Line 48: warning: ineffectual assignment to j (ineffassign)
    • Line 55: warning: ineffectual assignment to j (ineffassign)
    • Line 62: warning: ineffectual assignment to j (ineffassign)
    • Line 69: warning: ineffectual assignment to j (ineffassign)
    • Line 76: warning: ineffectual assignment to j (ineffassign)
    • Line 83: warning: ineffectual assignment to j (ineffassign)
    • Line 90: warning: ineffectual assignment to j (ineffassign)
    • Line 97: warning: ineffectual assignment to j (ineffassign)
    • Line 104: warning: ineffectual assignment to j (ineffassign)
    • jin/jin_object_set.go
    • Line 6: warning: ineffectual assignment to j (ineffassign)
    • Line 13: warning: ineffectual assignment to j (ineffassign)
    • Line 20: warning: ineffectual assignment to j (ineffassign)
    • Line 27: warning: ineffectual assignment to j (ineffassign)
    • Line 34: warning: ineffectual assignment to j (ineffassign)
    • Line 41: warning: ineffectual assignment to j (ineffassign)

misspell96%

Misspell Finds commonly misspelled English words

    • jin/package_description.go
    • Line 186: warning: "usefull" is a misspelling of "useful" (misspell)
    • Line 349: warning: "interpert" is a misspelling of "interpret" (misspell)
    • Line 361: warning: "interpert" is a misspelling of "interpret" (misspell)
    • Line 369: warning: "interpert" is a misspelling of "interpret" (misspell)
    • Line 380: warning: "interpert" is a misspelling of "interpret" (misspell)