Preparing report...

Report for github.com/EngoEngine/engo

A+    Excellent!    Found 29 issues across 131 files

Tweet

gofmt99%

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!


golint95%

Golint is a linter for Go source code.

    • engo/demos/falling/falling.go
    • Line 13: warning: exported type Guy should have comment or be unexported (golint)
    • Line 20: warning: exported type Rock should have comment or be unexported (golint)
    • Line 27: warning: exported type DefaultScene should have comment or be unexported (golint)
    • Line 29: warning: exported method DefaultScene.Preload should have comment or be unexported (golint)
    • Line 36: warning: exported method DefaultScene.Setup should have comment or be unexported (golint)
    • Line 84: warning: exported method DefaultScene.Type should have comment or be unexported (golint)
    • Line 91: warning: exported type ControlSystem should have comment or be unexported (golint)
    • Line 95: warning: exported method ControlSystem.Add should have comment or be unexported (golint)
    • Line 99: warning: exported method ControlSystem.Remove should have comment or be unexported (golint)
    • Line 112: warning: exported method ControlSystem.Update should have comment or be unexported (golint)
    • Line 128: warning: exported type RockSpawnSystem should have comment or be unexported (golint)
    • Line 132: warning: exported method RockSpawnSystem.New should have comment or be unexported (golint)
    • Line 136: warning: exported method RockSpawnSystem.Remove should have comment or be unexported (golint)
    • Line 138: warning: exported method RockSpawnSystem.Update should have comment or be unexported (golint)
    • Line 151: warning: exported function NewRock should have comment or be unexported (golint)
    • Line 234: warning: exported type FallingSystem should have comment or be unexported (golint)
    • Line 239: warning: exported method FallingSystem.Add should have comment or be unexported (golint)
    • Line 243: warning: exported method FallingSystem.Remove should have comment or be unexported (golint)
    • Line 259: warning: exported method FallingSystem.Update should have comment or be unexported (golint)
    • Line 271: warning: exported method FallingSystem.New should have comment or be unexported (golint)
    • Line 275: warning: exported type DeathSystem should have comment or be unexported (golint)
    • Line 277: warning: exported method DeathSystem.New should have comment or be unexported (golint)
    • Line 288: warning: exported method DeathSystem.Remove should have comment or be unexported (golint)
    • Line 289: warning: exported method DeathSystem.Update should have comment or be unexported (golint)
    • engo/common/render_framebuffer.go
    • Line 8: warning: exported type RenderBuffer should have comment or be unexported (golint)
    • Line 13: warning: exported type Framebuffer should have comment or be unexported (golint)
    • Line 19: warning: exported type RenderTexture should have comment or be unexported (golint)
    • Line 25: warning: exported function CreateRenderBuffer should have comment or be unexported (golint)
    • Line 37: warning: exported function CreateRenderTexture should have comment or be unexported (golint)
    • Line 61: warning: exported function CreateFramebuffer should have comment or be unexported (golint)
    • Line 67: warning: exported method RenderTexture.Bind should have comment or be unexported (golint)
    • Line 75: warning: exported method RenderTexture.Close should have comment or be unexported (golint)
    • Line 99: warning: exported method RenderBuffer.Bind should have comment or be unexported (golint)
    • Line 103: warning: exported method RenderBuffer.Destroy should have comment or be unexported (golint)
    • Line 107: warning: exported method Framebuffer.Open should have comment or be unexported (golint)
    • Line 117: warning: exported method Framebuffer.Close should have comment or be unexported (golint)
    • Line 126: warning: exported method Framebuffer.Destroy should have comment or be unexported (golint)
    • engo/common/render_shaders_blendmap.go
    • Line 11: warning: exported type TexturePack should have comment or be unexported (golint)
    • Line 19: warning: exported type Blendmap should have comment or be unexported (golint)
    • Line 113: warning: don't use underscores in Go names; struct field uf_BlendMap should be ufBlendMap (golint)
    • Line 114: warning: don't use underscores in Go names; struct field uf_Fallback should be ufFallback (golint)
    • Line 115: warning: don't use underscores in Go names; struct field uf_RChannel should be ufRChannel (golint)
    • Line 116: warning: don't use underscores in Go names; struct field uf_GChannel should be ufGChannel (golint)
    • Line 117: warning: don't use underscores in Go names; struct field uf_BChannel should be ufBChannel (golint)
    • Line 119: warning: don't use underscores in Go names; struct field uf_scaleFB should be ufScaleFB (golint)
    • Line 120: warning: don't use underscores in Go names; struct field uf_scaleR should be ufScaleR (golint)
    • Line 121: warning: don't use underscores in Go names; struct field uf_scaleG should be ufScaleG (golint)
    • Line 122: warning: don't use underscores in Go names; struct field uf_scaleB should be ufScaleB (golint)
    • engo/demos/blendmap/main.go
    • Line 9: warning: exported type DefaultScene should have comment or be unexported (golint)
    • Line 11: warning: exported method DefaultScene.Preload should have comment or be unexported (golint)
    • Line 45: warning: exported method DefaultScene.Type should have comment or be unexported (golint)
    • engo/common/internal/decode/convert/convert.go
    • Line 54: warning: exported type Resampling should have comment or be unexported (golint)
    • Line 66: warning: exported function NewResampling should have comment or be unexported (golint)
    • Line 79: warning: exported method Resampling.Length should have comment or be unexported (golint)
    • Line 215: warning: exported method Resampling.Seek should have comment or be unexported (golint)
    • Line 233: warning: exported method Resampling.Close should have comment or be unexported (golint)
    • Line 237: warning: exported type Stereo16 should have comment or be unexported (golint)
    • Line 243: warning: exported function NewStereo16 should have comment or be unexported (golint)
    • Line 299: warning: exported method Stereo16.Seek should have comment or be unexported (golint)
    • Line 309: warning: exported method Stereo16.Close should have comment or be unexported (golint)

gocyclo81%

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.

    • engo/common/collision.go
    • Line 280: warning: cyclomatic complexity 19 of function (SpaceComponent).Overlaps() is high (> 15) (gocyclo)
    • Line 213: warning: cyclomatic complexity 16 of function (SpaceComponent).Contains() is high (> 15) (gocyclo)
    • engo/common/tmx_level.go
    • Line 16: warning: cyclomatic complexity 30 of function createLevelFromTmx() is high (> 15) (gocyclo)
    • Line 235: warning: cyclomatic complexity 27 of function (*Level).unpackTiles() is high (> 15) (gocyclo)
    • engo/engo_js.go
    • Line 37: warning: cyclomatic complexity 33 of function CreateWindow() is high (> 15) (gocyclo)
    • engo/demos/adventure/adventure.go
    • Line 456: warning: cyclomatic complexity 25 of function setAnimation() is high (> 15) (gocyclo)
    • Line 138: warning: cyclomatic complexity 24 of function (*DefaultScene).Setup() is high (> 15) (gocyclo)
    • Line 609: warning: cyclomatic complexity 20 of function (*PauseSystem).Update() is high (> 15) (gocyclo)
    • Line 514: warning: cyclomatic complexity 19 of function getSpeed() is high (> 15) (gocyclo)

ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 2)