Preparing report...

Report for github.com/shamaton/msgpack

(v1.2.1)

A+    Excellent!    Found 10 issues across 39 files

Tweet

gofmt97%

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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo76%

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.

    • internal/encoding/map.go
    • Line 274: warning: cyclomatic complexity 77 of function (*encoder).writeFixedMap() is high (> 15) (gocyclo)
    • Line 10: warning: cyclomatic complexity 77 of function (*encoder).calcFixedMap() is high (> 15) (gocyclo)
    • internal/encoding/slice.go
    • Line 114: warning: cyclomatic complexity 29 of function (*encoder).writeFixedSlice() is high (> 15) (gocyclo)
    • Line 10: warning: cyclomatic complexity 28 of function (*encoder).calcFixedSlice() is high (> 15) (gocyclo)
    • msgpack_test.go
    • Line 722: warning: cyclomatic complexity 77 of function TestFixedMap() is high (> 15) (gocyclo)
    • Line 592: warning: cyclomatic complexity 28 of function TestFixedSlice() is high (> 15) (gocyclo)
    • Line 1125: warning: cyclomatic complexity 25 of function TestMap() is high (> 15) (gocyclo)
    • Line 502: warning: cyclomatic complexity 21 of function TestArray() is high (> 15) (gocyclo)
    • Line 406: warning: cyclomatic complexity 18 of function TestBin() is high (> 15) (gocyclo)
    • internal/encoding/encoding.go
    • Line 66: warning: cyclomatic complexity 47 of function (*encoder).calcSize() is high (> 15) (gocyclo)
    • Line 272: warning: cyclomatic complexity 29 of function (*encoder).create() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell94%

Misspell Finds commonly misspelled English words

    • internal/decoding/complex.go
    • Line 19: warning: "diffrent" is a misspelling of "different" (misspell)
    • Line 30: warning: "diffrent" is a misspelling of "different" (misspell)
    • Line 50: warning: "diffrent" is a misspelling of "different" (misspell)
    • Line 61: warning: "diffrent" is a misspelling of "different" (misspell)