Preparing report...

Report for github.com/galaco/lambda-client

A    Great!    Found 39 issues across 44 files

Tweet

gofmt90%

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!


gocyclo100%

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.

No problems detected. Good job!


golint13%

Golint is a linter for Go source code.

    • lambda-client/renderer/gl/renderer.go
    • Line 24: warning: comment on exported type Renderer should be of the form "Renderer ..." (with optional leading article) (golint)
    • Line 106: warning: comment on exported method Renderer.StartFrame should be of the form "StartFrame ..." (golint)
    • Line 129: warning: comment on exported method Renderer.EndFrame should be of the form "EndFrame ..." (golint)
    • Line 138: warning: comment on exported method Renderer.DrawBsp should be of the form "DrawBsp ..." (golint)
    • Line 185: warning: comment on exported method Renderer.DrawSkybox should be of the form "DrawSkybox ..." (golint)
    • Line 212: warning: comment on exported method Renderer.DrawModel should be of the form "DrawModel ..." (golint)
    • Line 232: warning: exported method Renderer.BindMesh should have comment or be unexported (golint)
    • Line 256: warning: exported method Renderer.DrawFace should have comment or be unexported (golint)
    • Line 283: warning: comment on exported method Renderer.DrawSkyMaterial should be of the form "DrawSkyMaterial ..." (golint)
    • Line 324: warning: exported method Renderer.Unregister should have comment or be unexported (golint)
    • Line 329: warning: exported function NewRenderer should have comment or be unexported (golint)
    • lambda-client/event/manager.go
    • Line 5: warning: exported type Name should have comment or be unexported (golint)
    • Line 9: warning: comment on exported function Dispatcher should be of the form "Dispatcher ..." (golint)
    • lambda-client/scene/visibility/vis.go
    • Line 13: warning: exported type Vis should have comment or be unexported (golint)
    • Line 25: warning: exported method Vis.PVSForCluster should have comment or be unexported (golint)
    • Line 29: warning: exported method Vis.GetPVSCacheForCluster should have comment or be unexported (golint)
    • Line 86: warning: comment on exported method Vis.FindCurrentLeaf should be of the form "FindCurrentLeaf ..." (golint)
    • Line 117: warning: exported function NewVisFromBSP should have comment or be unexported (golint)
    • lambda-client/renderer/ui/renderer.go
    • Line 9: warning: exported type Renderer should have comment or be unexported (golint)
    • Line 15: warning: exported method Renderer.InitRenderContext should have comment or be unexported (golint)
    • Line 20: warning: exported method Renderer.SetMasterPanel should have comment or be unexported (golint)
    • Line 24: warning: exported method Renderer.DrawUI should have comment or be unexported (golint)
    • lambda-client/input/manager.go
    • Line 13: warning: comment on exported type Manager should be of the form "Manager ..." (with optional leading article) (golint)
    • Line 55: warning: exported method Manager.PostUpdate should have comment or be unexported (golint)
    • Line 59: warning: comment on exported method Manager.Unregister should be of the form "Unregister ..." (golint)
    • Line 91: warning: comment on exported function NewInputManager should be of the form "NewInputManager ..." (golint)
    • lambda-client/renderer/camera/frustum.go
    • Line 22: warning: comment on exported type Frustum should be of the form "Frustum ..." (with optional leading article) (golint)
    • Line 28: warning: comment on exported method Frustum.IsCuboidInFrustum should be of the form "IsCuboidInFrustum ..." (golint)
    • Line 163: warning: comment on exported function FrustumFromCamera should be of the form "FrustumFromCamera ..." (golint)
    • lambda-client/ui/ui.go
    • Line 11: warning: exported type Gui should have comment or be unexported (golint)
    • Line 17: warning: exported method Gui.Register should have comment or be unexported (golint)
    • Line 21: warning: exported method Gui.Update should have comment or be unexported (golint)
    • Line 25: warning: exported method Gui.Render should have comment or be unexported (golint)
    • Line 29: warning: comment on exported method Gui.LoadVGUIResource should be of the form "LoadVGUIResource ..." (golint)
    • Line 40: warning: exported method Gui.MasterPanel should have comment or be unexported (golint)
    • Line 44: warning: exported function NewGUIManager should have comment or be unexported (golint)
    • lambda-client/scene/scene.go
    • Line 9: warning: exported type Scene should have comment or be unexported (golint)
    • Line 20: warning: exported method Scene.AddEntity should have comment or be unexported (golint)
    • Line 24: warning: exported method Scene.GetEntity should have comment or be unexported (golint)
    • Line 31: warning: exported method Scene.FindEntitiesByKey should have comment or be unexported (golint)
    • Line 41: warning: exported method Scene.NumEntities should have comment or be unexported (golint)
    • Line 45: warning: exported method Scene.GetAllEntities should have comment or be unexported (golint)
    • Line 49: warning: exported method Scene.SetWorld should have comment or be unexported (golint)
    • Line 53: warning: exported method Scene.GetWorld should have comment or be unexported (golint)
    • Line 57: warning: exported method Scene.GetSky should have comment or be unexported (golint)
    • Line 61: warning: exported method Scene.AddCamera should have comment or be unexported (golint)
    • Line 72: warning: exported method Scene.CurrentCamera should have comment or be unexported (golint)
    • Line 76: warning: exported method Scene.IsLoaded should have comment or be unexported (golint)
    • Line 80: warning: comment on exported method Scene.Reset should be of the form "Reset ..." (golint)
    • Line 92: warning: exported function Get should have comment or be unexported (golint)
    • lambda-client/scene/world/sky.go
    • Line 9: warning: exported type Sky should have comment or be unexported (golint)
    • Line 17: warning: exported method Sky.GetVisibleBsp should have comment or be unexported (golint)
    • Line 21: warning: exported method Sky.GetClusterLeafs should have comment or be unexported (golint)
    • Line 25: warning: exported method Sky.GetCubemap should have comment or be unexported (golint)
    • Line 29: warning: exported method Sky.Transform should have comment or be unexported (golint)
    • Line 33: warning: exported function NewSky should have comment or be unexported (golint)
    • lambda-client/messages/mousemove.go
    • Line 7: warning: exported const TypeMouseMove should have comment or be unexported (golint)
    • Line 14: warning: exported method MouseMove.Type should have comment or be unexported (golint)
    • Line 18: warning: exported method MouseMove.Message should have comment or be unexported (golint)
    • lambda-client/scene/world/world.go
    • Line 13: warning: exported type World should have comment or be unexported (golint)
    • Line 29: warning: exported method World.Bsp should have comment or be unexported (golint)
    • Line 33: warning: exported method World.Sky should have comment or be unexported (golint)
    • Line 37: warning: exported method World.VisibleClusters should have comment or be unexported (golint)
    • Line 44: warning: comment on exported method World.TestVisibility should be of the form "TestVisibility ..." (golint)
    • Line 77: warning: comment on exported method World.AsyncRebuildVisibleWorld should be of the form "AsyncRebuildVisibleWorld ..." (golint)
    • Line 107: warning: comment on exported method World.BuildSkybox should be of the form "BuildSkybox ..." (golint)
    • Line 131: warning: exported function NewWorld should have comment or be unexported (golint)
    • lambda-client/input/keyboard.go
    • Line 20: warning: comment on exported method Keyboard.ReceiveMessage should be of the form "ReceiveMessage ..." (golint)
    • Line 31: warning: exported method Keyboard.SendMessage should have comment or be unexported (golint)
    • lambda-client/renderer/gl/prop/cache.go
    • Line 9: warning: exported var ModelIdMap should have comment or be unexported (golint)
    • Line 11: warning: exported function SyncPropToGpu should have comment or be unexported (golint)
    • Line 34: warning: exported function DestroyPropOnGPU should have comment or be unexported (golint)
    • lambda-client/messages/keydown.go
    • Line 7: warning: exported const TypeKeyDown should have comment or be unexported (golint)
    • Line 19: warning: comment on exported method KeyDown.Message should be of the form "Message ..." (golint)
    • lambda-client/renderer/cache/prop.go
    • Line 9: warning: exported type PropCache should have comment or be unexported (golint)
    • Line 13: warning: exported method PropCache.NeedsRecache should have comment or be unexported (golint)
    • Line 17: warning: exported method PropCache.Add should have comment or be unexported (golint)
    • Line 26: warning: exported method PropCache.All should have comment or be unexported (golint)
    • Line 30: warning: exported type Entry should have comment or be unexported (golint)
    • Line 35: warning: exported function NewPropCache should have comment or be unexported (golint)
    • lambda-client/messages/keyreleased.go
    • Line 7: warning: exported const TypeKeyReleased should have comment or be unexported (golint)
    • Line 14: warning: exported method KeyReleased.Type should have comment or be unexported (golint)
    • Line 18: warning: exported method KeyReleased.Message should have comment or be unexported (golint)
    • lambda-client/renderer/gl/material/cache.go
    • Line 11: warning: exported type Cache should have comment or be unexported (golint)
    • Line 16: warning: exported method Cache.FetchCachedTexture should have comment or be unexported (golint)
    • Line 20: warning: exported method Cache.SyncTextureToGpu should have comment or be unexported (golint)
    • Line 53: warning: exported method Cache.DestroyTextureOnGPU should have comment or be unexported (golint)
    • Line 64: warning: exported function NewCache should have comment or be unexported (golint)
    • lambda-client/renderer/manager.go
    • Line 15: warning: exported type Manager should have comment or be unexported (golint)
    • Line 28: warning: exported method Manager.Register should have comment or be unexported (golint)
    • Line 36: warning: exported method Manager.Update should have comment or be unexported (golint)
    • Line 69: warning: exported method Manager.SetUIMasterPanel should have comment or be unexported (golint)
    • Line 73: warning: exported method Manager.RecacheEntities should have comment or be unexported (golint)
    • Line 95: warning: exported function NewRenderManager should have comment or be unexported (golint)
    • lambda-client/ui/dialogs/syscalls.go
    • Line 7: warning: comment on exported function OpenFile should be of the form "OpenFile ..." (golint)
    • Line 12: warning: comment on exported function ErrorMessage should be of the form "ErrorMessage ..." (golint)
    • lambda-client/behaviour/closeable.go
    • Line 14: warning: comment on exported method Closeable.ReceiveMessage should be of the form "ReceiveMessage ..." (golint)
    • Line 24: warning: exported function NewCloseable should have comment or be unexported (golint)
    • lambda-client/input/mouse.go
    • Line 34: warning: exported method Mouse.PostUpdate should have comment or be unexported (golint)
    • Line 39: warning: exported method Mouse.SendMessage should have comment or be unexported (golint)
    • lambda-client/messages/keyheld.go
    • Line 7: warning: exported const TypeKeyHeld should have comment or be unexported (golint)
    • Line 14: warning: exported method KeyHeld.Type should have comment or be unexported (golint)
    • Line 18: warning: exported method KeyHeld.Message 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!