Preparing report...

Report for github.com/chai2010/jsonmap

A    Great!    Found 1 issues across 5 files

Tweet

gofmt80%

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!


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.

    • jsonmap/jsonmap.go
    • Line 242: warning: cyclomatic complexity 22 of function unpackMapXToFlatMap() is high (> 15) (gocyclo)
    • Line 190: warning: cyclomatic complexity 22 of function unpackMapXToMapString() is high (> 15) (gocyclo)

golint80%

Golint is a linter for Go source code.

    • jsonmap/jsonmap.go
    • Line 5: warning: package comment should be of the form "Package jsonmap ..." (golint)
    • Line 18: warning: exported type JsonMap should have comment or be unexported (golint)
    • Line 20: warning: exported function NewJsonMap should have comment or be unexported (golint)
    • Line 24: warning: exported function NewJsonMapFromKV should have comment or be unexported (golint)
    • Line 30: warning: exported function NewJsonMapFromStruct should have comment or be unexported (golint)
    • Line 36: warning: exported method JsonMap.Keys should have comment or be unexported (golint)
    • Line 44: warning: should omit 2nd value from range; this loop is equivalent to `for k := range ...` (golint)
    • Line 53: warning: exported method JsonMap.GetValue should have comment or be unexported (golint)
    • Line 87: warning: exported method JsonMap.SetValue should have comment or be unexported (golint)
    • Line 111: warning: exported method JsonMap.DelValues should have comment or be unexported (golint)
    • Line 124: warning: exported method JsonMap.DelValue should have comment or be unexported (golint)
    • Line 152: warning: exported method JsonMap.SetValuesFromStruct should have comment or be unexported (golint)
    • Line 158: warning: exported method JsonMap.SetValuesFromKV should have comment or be unexported (golint)
    • Line 178: warning: exported method JsonMap.ToStruct should have comment or be unexported (golint)
    • Line 182: warning: exported method JsonMap.ToMapString should have comment or be unexported (golint)
    • Line 185: warning: exported method JsonMap.ToFlatMap should have comment or be unexported (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!