Preparing report...

Report for github.com/richardlt/matrix

A+    Excellent!    Found 21 issues across 62 files

Tweet

gofmt87%

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!


gocyclo83%

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.

    • matrix/main.go
    • Line 66: warning: cyclomatic complexity 20 of function startAction() is high (> 15) (gocyclo)

golint88%

Golint is a linter for Go source code.

    • matrix/sdk-go/software/driver.go
    • Line 10: warning: exported type RandomDriver should have comment or be unexported (golint)
    • Line 17: warning: exported method RandomDriver.OnEnd should have comment or be unexported (golint)
    • Line 19: warning: exported method RandomDriver.End should have comment or be unexported (golint)
    • Line 25: warning: exported method RandomDriver.OnStep should have comment or be unexported (golint)
    • Line 27: warning: exported method RandomDriver.Step should have comment or be unexported (golint)
    • Line 33: warning: exported method RandomDriver.Render should have comment or be unexported (golint)
    • Line 43: warning: exported type CaracterDriver should have comment or be unexported (golint)
    • Line 51: warning: exported method CaracterDriver.OnEnd should have comment or be unexported (golint)
    • Line 53: warning: exported method CaracterDriver.End should have comment or be unexported (golint)
    • Line 59: warning: exported method CaracterDriver.OnStep should have comment or be unexported (golint)
    • Line 61: warning: exported method CaracterDriver.Step should have comment or be unexported (golint)
    • Line 67: warning: exported method CaracterDriver.Render should have comment or be unexported (golint)
    • Line 81: warning: exported type TextDriver should have comment or be unexported (golint)
    • Line 89: warning: exported method TextDriver.OnEnd should have comment or be unexported (golint)
    • Line 91: warning: exported method TextDriver.End should have comment or be unexported (golint)
    • Line 97: warning: exported method TextDriver.OnStep should have comment or be unexported (golint)
    • Line 99: warning: exported method TextDriver.Step should have comment or be unexported (golint)
    • Line 105: warning: exported method TextDriver.Render should have comment or be unexported (golint)
    • Line 121: warning: exported method TextDriver.Stop should have comment or be unexported (golint)
    • Line 131: warning: exported type ImageDriver should have comment or be unexported (golint)
    • Line 139: warning: exported method ImageDriver.OnEnd should have comment or be unexported (golint)
    • Line 141: warning: exported method ImageDriver.End should have comment or be unexported (golint)
    • Line 147: warning: exported method ImageDriver.OnStep should have comment or be unexported (golint)
    • Line 149: warning: exported method ImageDriver.Step should have comment or be unexported (golint)
    • Line 155: warning: exported method ImageDriver.Render should have comment or be unexported (golint)
    • Line 155: warning: receiver name c should be consistent with previous receiver name i for ImageDriver (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!


misspell96%

Misspell Finds commonly misspelled English words

    • matrix/device/matrix.go
    • Line 190: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 191: warning: "occured" is a misspelling of "occurred" (misspell)
    • Line 199: warning: "occured" is a misspelling of "occurred" (misspell)