Preparing report...

Report for github.com/stdiopt/gowasm-experiments

A    Great!    Found 9 issues across 14 files

Tweet

gofmt85%

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!


gocyclo92%

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.


golint57%

Golint is a linter for Go source code.

    • gowasm-experiments/splashy/main.go
    • Line 142: warning: exported type Thing should have comment or be unexported (golint)
    • Line 159: warning: exported method Thing.Init should have comment or be unexported (golint)
    • Line 229: warning: exported method Thing.Render should have comment or be unexported (golint)
    • Line 285: warning: exported method Thing.AddCircle should have comment or be unexported (golint)
    • Line 386: warning: exported type QuadFX should have comment or be unexported (golint)
    • Line 397: warning: exported method QuadFX.Init should have comment or be unexported (golint)
    • Line 424: warning: exported method QuadFX.Render should have comment or be unexported (golint)
    • Line 442: warning: exported method QuadFX.Release should have comment or be unexported (golint)
    • gowasm-experiments/arty/painter/fontcache.go
    • Line 8: warning: exported type FontCache should have comment or be unexported (golint)
    • Line 10: warning: exported method FontCache.Load should have comment or be unexported (golint)
    • Line 18: warning: exported method FontCache.Store should have comment or be unexported (golint)
    • gowasm-experiments/arty/painter/operations.go
    • Line 15: warning: comment on exported type Message should be of the form "Message ..." (with optional leading article) (golint)
    • Line 20: warning: exported method Message.UnmarshalJSON should have comment or be unexported (golint)
    • Line 47: warning: exported method Message.MarshalJSON should have comment or be unexported (golint)
    • Line 65: warning: comment on exported type InitOP should be of the form "InitOP ..." (with optional leading article) (golint)
    • Line 71: warning: exported type LineOP should have comment or be unexported (golint)
    • Line 78: warning: exported type TextOP should have comment or be unexported (golint)
    • gowasm-experiments/arty/painter/painter.go
    • Line 17: warning: exported type BufPainter should have comment or be unexported (golint)
    • Line 25: warning: exported function New should have comment or be unexported (golint)
    • Line 33: warning: exported method BufPainter.HandleRaw should have comment or be unexported (golint)
    • Line 42: warning: exported method BufPainter.HandleOP should have comment or be unexported (golint)
    • Line 56: warning: exported method BufPainter.Set should have comment or be unexported (golint)
    • Line 63: warning: exported method BufPainter.ImageData should have comment or be unexported (golint)
    • Line 70: warning: exported method BufPainter.Width should have comment or be unexported (golint)
    • Line 74: warning: exported method BufPainter.Height should have comment or be unexported (golint)
    • Line 78: warning: exported method BufPainter.Init should have comment or be unexported (golint)
    • Line 98: warning: exported method BufPainter.Line should have comment or be unexported (golint)
    • Line 107: warning: exported method BufPainter.Text should have comment or be unexported (golint)
    • gowasm-experiments/arty/client/main.go
    • Line 30: warning: exported type CanvasClient should have comment or be unexported (golint)
    • Line 52: warning: exported function NewCanvasClient should have comment or be unexported (golint)
    • Line 67: warning: exported method CanvasClient.Start should have comment or be unexported (golint)
    • Line 75: warning: exported method CanvasClient.Close should have comment or be unexported (golint)
    • Line 242: warning: exported method CanvasClient.SetStatus should have comment or be unexported (golint)

ineffassign92%

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!