Preparing report...

Report for github.com/henrylee2cn/ameda

A+    Excellent!    Found 9 issues across 51 files

Tweet

gofmt98%

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!


golint92%

Golint is a linter for Go source code.

    • ameda/int8s.go
    • Line 74: warning: comment on exported function Int8sInts should be of the form "Int8sInts ..." (golint)
    • ameda/itoa62.go
    • Line 93: warning: don't use underscores in Go names; func parameter append_ should be append (golint)
    • ameda/utils.go
    • Line 11: warning: exported const Host64bit should have comment (or a comment on this block) or be unexported (golint)

gocyclo92%

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.

    • ameda/interface.go
    • Line 27: warning: cyclomatic complexity 25 of function InterfaceToBool() is high (> 15) (gocyclo)
    • Line 93: warning: cyclomatic complexity 24 of function InterfaceToFloat32() is high (> 15) (gocyclo)
    • Line 755: warning: cyclomatic complexity 23 of function InterfaceToUint64() is high (> 15) (gocyclo)
    • Line 155: warning: cyclomatic complexity 23 of function InterfaceToFloat64() is high (> 15) (gocyclo)
    • Line 335: warning: cyclomatic complexity 23 of function InterfaceToInt16() is high (> 15) (gocyclo)
    • Line 515: warning: cyclomatic complexity 23 of function InterfaceToUint() is high (> 15) (gocyclo)
    • Line 215: warning: cyclomatic complexity 23 of function InterfaceToInt() is high (> 15) (gocyclo)
    • Line 395: warning: cyclomatic complexity 23 of function InterfaceToInt32() is high (> 15) (gocyclo)
    • Line 575: warning: cyclomatic complexity 23 of function InterfaceToUint8() is high (> 15) (gocyclo)
    • Line 695: warning: cyclomatic complexity 23 of function InterfaceToUint32() is high (> 15) (gocyclo)
    • Line 275: warning: cyclomatic complexity 23 of function InterfaceToInt8() is high (> 15) (gocyclo)
    • Line 635: warning: cyclomatic complexity 23 of function InterfaceToUint16() is high (> 15) (gocyclo)
    • Line 455: warning: cyclomatic complexity 23 of function InterfaceToInt64() is high (> 15) (gocyclo)
    • ameda/atoi62.go
    • Line 12: warning: cyclomatic complexity 20 of function ParseUint() is high (> 15) (gocyclo)
    • Line 150: warning: cyclomatic complexity 18 of function underscoreOK() is high (> 15) (gocyclo)
    • ameda/utils.go
    • Line 71: warning: cyclomatic complexity 16 of function isZero() is high (> 15) (gocyclo)

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!


misspell98%

Misspell Finds commonly misspelled English words