Preparing report...

Report for github.com/ZYallers/golib

(v1.3.26)

A+    Excellent!    Found 8 issues across 60 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!


gocyclo90%

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.

    • funcs/conv/float.go
    • Line 76: warning: cyclomatic complexity 20 of function ToFloat32E() is high (> 15) (gocyclo)
    • Line 22: warning: cyclomatic complexity 20 of function ToFloat64E() is high (> 15) (gocyclo)
    • funcs/conv/int.go
    • Line 241: warning: cyclomatic complexity 19 of function ToInt64E() is high (> 15) (gocyclo)
    • Line 41: warning: cyclomatic complexity 19 of function ToIntE() is high (> 15) (gocyclo)
    • Line 91: warning: cyclomatic complexity 19 of function ToInt8E() is high (> 15) (gocyclo)
    • Line 141: warning: cyclomatic complexity 19 of function ToInt16E() is high (> 15) (gocyclo)
    • Line 191: warning: cyclomatic complexity 19 of function ToInt32E() is high (> 15) (gocyclo)
    • funcs/conv/uint.go
    • Line 191: warning: cyclomatic complexity 27 of function ToUint32E() is high (> 15) (gocyclo)
    • Line 117: warning: cyclomatic complexity 27 of function ToUint64E() is high (> 15) (gocyclo)
    • Line 43: warning: cyclomatic complexity 27 of function ToUintE() is high (> 15) (gocyclo)
    • Line 339: warning: cyclomatic complexity 27 of function ToUint8E() is high (> 15) (gocyclo)
    • Line 265: warning: cyclomatic complexity 27 of function ToUint16E() is high (> 15) (gocyclo)
    • utils/curl/go_curl.go
    • Line 120: warning: cyclomatic complexity 26 of function (*goCurl).handler() is high (> 15) (gocyclo)
    • Line 59: warning: cyclomatic complexity 18 of function (*goCurl).Done() is high (> 15) (gocyclo)

ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!