Preparing report...

Report for github.com/nofeaturesonlybugs/set

(v0.5.0)

A+    Excellent!    Found 13 issues across 75 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!


gocyclo85%

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.

    • coerce/float.go
    • Line 12: warning: cyclomatic complexity 38 of function Float32() is high (> 15) (gocyclo)
    • Line 120: warning: cyclomatic complexity 34 of function Float64() is high (> 15) (gocyclo)
    • value.go
    • Line 396: warning: cyclomatic complexity 29 of function (Value).To() is high (> 15) (gocyclo)
    • Line 224: warning: cyclomatic complexity 19 of function (Value).fill() is high (> 15) (gocyclo)
    • bound_mapping.go
    • Line 261: warning: cyclomatic complexity 28 of function (*BoundMapping).Set() is high (> 15) (gocyclo)
    • Line 157: warning: cyclomatic complexity 27 of function (BoundMapping).Fields() is high (> 15) (gocyclo)
    • prepared_mapping.go
    • Line 350: warning: cyclomatic complexity 27 of function (*PreparedMapping).Set() is high (> 15) (gocyclo)
    • Line 180: warning: cyclomatic complexity 26 of function (PreparedMapping).Fields() is high (> 15) (gocyclo)
    • mapper.go
    • Line 170: warning: cyclomatic complexity 25 of function (*Mapper).Map() is high (> 15) (gocyclo)
    • type_info.go
    • Line 81: warning: cyclomatic complexity 23 of function (*typeInfoCache).StatType() is high (> 15) (gocyclo)
    • mapper_combined_test.go
    • Line 46: warning: cyclomatic complexity 51 of function (MapStructTests).Run() is high (> 15) (gocyclo)
    • Line 422: warning: cyclomatic complexity 26 of function (MapStructTests).Benchmark() is high (> 15) (gocyclo)
    • coerce/int.go
    • Line 154: warning: cyclomatic complexity 44 of function Int8() is high (> 15) (gocyclo)
    • Line 290: warning: cyclomatic complexity 42 of function Int16() is high (> 15) (gocyclo)
    • Line 424: warning: cyclomatic complexity 40 of function Int32() is high (> 15) (gocyclo)
    • Line 25: warning: cyclomatic complexity 39 of function Int() is high (> 15) (gocyclo)
    • Line 556: warning: cyclomatic complexity 37 of function Int64() is high (> 15) (gocyclo)
    • coerce/uint.go
    • Line 152: warning: cyclomatic complexity 44 of function Uint8() is high (> 15) (gocyclo)
    • Line 288: warning: cyclomatic complexity 43 of function Uint16() is high (> 15) (gocyclo)
    • Line 421: warning: cyclomatic complexity 42 of function Uint32() is high (> 15) (gocyclo)
    • Line 25: warning: cyclomatic complexity 41 of function Uint() is high (> 15) (gocyclo)
    • Line 551: warning: cyclomatic complexity 40 of function Uint64() 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!


misspell97%

Misspell Finds commonly misspelled English words