Preparing report...

Report for github.com/spf13/cast

(v1.5.0)

A+    Excellent!    Found 1 issues across 3 files

Tweet

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!


gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


gocyclo66%

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.

    • caste.go
    • Line 643: warning: cyclomatic complexity 27 of function ToUint32E() is high (> 15) (gocyclo)
    • Line 567: warning: cyclomatic complexity 27 of function ToUint64E() is high (> 15) (gocyclo)
    • Line 719: warning: cyclomatic complexity 27 of function ToUint16E() is high (> 15) (gocyclo)
    • Line 795: warning: cyclomatic complexity 27 of function ToUint8E() is high (> 15) (gocyclo)
    • Line 491: warning: cyclomatic complexity 27 of function ToUintE() is high (> 15) (gocyclo)
    • Line 910: warning: cyclomatic complexity 25 of function ToStringE() is high (> 15) (gocyclo)
    • Line 998: warning: cyclomatic complexity 21 of function ToStringMapStringSliceE() is high (> 15) (gocyclo)
    • Line 1234: warning: cyclomatic complexity 21 of function ToStringSliceE() is high (> 15) (gocyclo)
    • Line 119: warning: cyclomatic complexity 20 of function ToFloat64E() is high (> 15) (gocyclo)
    • Line 175: warning: cyclomatic complexity 20 of function ToFloat32E() is high (> 15) (gocyclo)
    • Line 335: warning: cyclomatic complexity 19 of function ToInt16E() is high (> 15) (gocyclo)
    • Line 231: warning: cyclomatic complexity 19 of function ToInt64E() is high (> 15) (gocyclo)
    • Line 439: warning: cyclomatic complexity 19 of function ToIntE() is high (> 15) (gocyclo)
    • Line 387: warning: cyclomatic complexity 19 of function ToInt8E() is high (> 15) (gocyclo)
    • Line 283: warning: cyclomatic complexity 19 of function ToInt32E() 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!