Preparing report...

Report for github.com/openacid/qcodec

A    Great!    Found 9 issues across 16 files

Tweet

gofmt87%

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!


gocyclo100%

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.

No problems detected. Good job!


golint62%

Golint is a linter for Go source code.

    • qcodec/dummy.go
    • Line 18: warning: comment on exported method Dummy.Size should be of the form "Size ..." (golint)
    • Line 23: warning: comment on exported method Dummy.EncodedSize should be of the form "EncodedSize ..." (golint)
    • qcodec/int8.go
    • Line 17: warning: comment on exported method I8.Size should be of the form "Size ..." (golint)
    • Line 22: warning: comment on exported method I8.EncodedSize should be of the form "EncodedSize ..." (golint)
    • Line 40: warning: comment on exported method U8.Size should be of the form "Size ..." (golint)
    • Line 45: warning: comment on exported method U8.EncodedSize should be of the form "EncodedSize ..." (golint)
    • qcodec/nativeint.go
    • Line 45: warning: comment on exported method Int.Size should be of the form "Size ..." (golint)
    • Line 50: warning: comment on exported method Int.EncodedSize should be of the form "EncodedSize ..." (golint)
    • qcodec/type_codec.go
    • Line 100: warning: comment on exported method TypeCodec.Size should be of the form "Size ..." (golint)
    • Line 105: warning: comment on exported method TypeCodec.EncodedSize should be of the form "EncodedSize ..." (golint)
    • qcodec/bytes.go
    • Line 21: warning: comment on exported method Bytes.Size should be of the form "Size ..." (golint)
    • Line 26: warning: comment on exported method Bytes.EncodedSize should be of the form "EncodedSize ..." (golint)
    • qcodec/codec.go
    • Line 60: warning: exported function CodecByKind should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign75%

IneffAssign detects ineffectual assignments in Go code.

    • qcodec/codec.go
    • Line 66: warning: undeclared name: U16 (ineffassign)
    • Line 68: warning: undeclared name: U32 (ineffassign)
    • Line 70: warning: undeclared name: U64 (ineffassign)
    • Line 74: warning: undeclared name: I16 (ineffassign)
    • Line 76: warning: undeclared name: I32 (ineffassign)
    • Line 78: warning: undeclared name: I64 (ineffassign)
    • Line 66: warning: undeclared name: U16 (ineffassign)
    • Line 68: warning: undeclared name: U32 (ineffassign)
    • Line 70: warning: undeclared name: U64 (ineffassign)
    • Line 74: warning: undeclared name: I16 (ineffassign)
    • Line 76: warning: undeclared name: I32 (ineffassign)
    • Line 78: warning: undeclared name: I64 (ineffassign)
    • qcodec/codec_test.go
    • Line 53: warning: undeclared name: U16 (ineffassign)
    • Line 54: warning: undeclared name: U32 (ineffassign)
    • Line 55: warning: undeclared name: U64 (ineffassign)
    • Line 56: warning: undeclared name: I16 (ineffassign)
    • Line 58: warning: undeclared name: I32 (ineffassign)
    • Line 59: warning: undeclared name: I64 (ineffassign)
    • Line 86: warning: undeclared name: U16 (ineffassign)
    • Line 91: warning: undeclared name: U32 (ineffassign)
    • Line 96: warning: undeclared name: U64 (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!