Preparing report...

Report for github.com/tsenart/go-tsz

A+    Excellent!    Found 4 issues across 7 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo71%

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.

    • go-tsz/tsz.go
    • Line 194: warning: cyclomatic complexity 22 of function (*Iter).Next() is high (> 15) (gocyclo)

golint71%

Golint is a linter for Go source code.

    • go-tsz/eval/helper.go
    • Line 7: warning: exported function Round should have comment or be unexported (golint)
    • Line 14: warning: exported function RoundNum should have comment or be unexported (golint)
    • go-tsz/eval/main.go
    • Line 14: warning: comment on exported var ConstantZero should be of the form "ConstantZero ..." (golint)
    • Line 16: warning: exported var ConstantOne should have comment or be unexported (golint)
    • Line 17: warning: exported var ConstantPos3f should have comment or be unexported (golint)
    • Line 18: warning: exported var ConstantNeg3f should have comment or be unexported (golint)
    • Line 19: warning: exported var ConstantPos0f should have comment or be unexported (golint)
    • Line 20: warning: exported var ConstantNeg0f should have comment or be unexported (golint)
    • Line 21: warning: exported var ConstantNearMaxf should have comment or be unexported (golint)
    • Line 22: warning: exported var ConstantNearMinf should have comment or be unexported (golint)
    • Line 23: warning: exported var ConstantNearMax0f should have comment or be unexported (golint)
    • Line 24: warning: exported var ConstantNearMin0f should have comment or be unexported (golint)
    • Line 25: warning: exported var Batch100ZeroOne should have comment or be unexported (golint)
    • Line 26: warning: exported var FlappingZeroOne should have comment or be unexported (golint)
    • Line 28: warning: exported var RandomTinyPosf should have comment or be unexported (golint)
    • Line 29: warning: exported var RandomTinyf should have comment or be unexported (golint)
    • Line 30: warning: exported var RandomTinyPos2f should have comment or be unexported (golint)
    • Line 31: warning: exported var RandomTiny2f should have comment or be unexported (golint)
    • Line 32: warning: exported var RandomTinyPos1f should have comment or be unexported (golint)
    • Line 33: warning: exported var RandomTiny1f should have comment or be unexported (golint)
    • Line 34: warning: exported var RandomTinyPos0f should have comment or be unexported (golint)
    • Line 35: warning: exported var RandomTiny0f should have comment or be unexported (golint)
    • Line 37: warning: exported var RandomSmallPosf should have comment or be unexported (golint)
    • Line 38: warning: exported var RandomSmallf should have comment or be unexported (golint)
    • Line 39: warning: exported var RandomSmallPos2f should have comment or be unexported (golint)
    • Line 40: warning: exported var RandomSmall2f should have comment or be unexported (golint)
    • Line 41: warning: exported var RandomSmallPos1f should have comment or be unexported (golint)
    • Line 42: warning: exported var RandomSmall1f should have comment or be unexported (golint)
    • Line 43: warning: exported var RandomSmallPos0f should have comment or be unexported (golint)
    • Line 44: warning: exported var RandomSmall0f should have comment or be unexported (golint)
    • Line 46: warning: exported var Random60kPosf should have comment or be unexported (golint)
    • Line 47: warning: exported var Random60kf should have comment or be unexported (golint)
    • Line 48: warning: exported var Random60kPos2f should have comment or be unexported (golint)
    • Line 49: warning: exported var Random60k2f should have comment or be unexported (golint)
    • Line 50: warning: exported var Random60kPos1f should have comment or be unexported (golint)
    • Line 51: warning: exported var Random60k1f should have comment or be unexported (golint)
    • Line 52: warning: exported var Random60kPos0f should have comment or be unexported (golint)
    • Line 53: warning: exported var Random60k0f should have comment or be unexported (golint)
    • Line 55: warning: exported var SmallTestDataPosf should have comment or be unexported (golint)
    • Line 56: warning: exported var SmallTestDataf should have comment or be unexported (golint)
    • Line 57: warning: exported var SmallTestDataPos0f should have comment or be unexported (golint)
    • Line 58: warning: exported var SmallTestData0f should have comment or be unexported (golint)
    • Line 60: warning: exported var RandomLargePosf should have comment or be unexported (golint)
    • Line 61: warning: exported var RandomLargef should have comment or be unexported (golint)
    • Line 62: warning: exported var RandomLargePos0f should have comment or be unexported (golint)
    • Line 63: warning: exported var RandomLarge0f should have comment or be unexported (golint)
    • Line 64: warning: exported var LargeTestDataPosf should have comment or be unexported (golint)
    • Line 65: warning: exported var LargeTestDataPos0f should have comment or be unexported (golint)
    • Line 66: warning: exported var LargeTestDataf should have comment or be unexported (golint)
    • Line 67: warning: exported var LargeTestData0f should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!