Preparing report...

Report for github.com/galaco/kero

A+    Excellent!    Found 69 issues across 100 files

Tweet

gofmt96%

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!


gocyclo99%

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.


golint33%

Golint is a linter for Go source code.

    • kero/game/entity/info_player_start.go
    • Line 7: warning: comment on exported type InfoPlayerStart should be of the form "InfoPlayerStart ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported method InfoPlayerStart.Classname should be of the form "Classname ..." (golint)
    • kero/game/entity/prop_ragdoll.go
    • Line 7: warning: comment on exported type PropRagdoll should be of the form "PropRagdoll ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported method PropRagdoll.Classname should be of the form "Classname ..." (golint)
    • Line 17: warning: comment on exported method PropRagdoll.PropPath should be of the form "PropPath ..." (golint)
    • kero/middleware/input.go
    • Line 12: warning: exported type Input should have comment or be unexported (golint)
    • Line 18: warning: exported method Input.Poll should have comment or be unexported (golint)
    • Line 43: warning: exported function InitializeInput should have comment or be unexported (golint)
    • Line 51: warning: exported function InputMiddleware should have comment or be unexported (golint)
    • kero/renderer/shaders/skybox.go
    • Line 3: warning: comment on exported var SkyboxFragment should be of the form "SkyboxFragment ..." (golint)
    • Line 19: warning: comment on exported var SkyboxVertex should be of the form "SkyboxVertex ..." (golint)
    • kero/framework/window/window.go
    • Line 9: warning: comment on exported function CurrentWindow should be of the form "CurrentWindow ..." (golint)
    • Line 19: warning: comment on exported method Window.Width should be of the form "Width ..." (golint)
    • Line 25: warning: comment on exported method Window.Height should be of the form "Height ..." (golint)
    • Line 31: warning: comment on exported method Window.ShouldClose should be of the form "ShouldClose ..." (golint)
    • Line 36: warning: comment on exported method Window.Close should be of the form "Close ..." (golint)
    • kero/gui/views/loading.go
    • Line 8: warning: exported type Loading should have comment or be unexported (golint)
    • Line 13: warning: exported method Loading.UpdateProgress should have comment or be unexported (golint)
    • Line 18: warning: exported method Loading.Render should have comment or be unexported (golint)
    • kero/scene/scene.go
    • Line 16: warning: exported type Scene should have comment or be unexported (golint)
    • Line 22: warning: exported method Scene.Initialize should have comment or be unexported (golint)
    • Line 33: warning: exported method Scene.Update should have comment or be unexported (golint)
    • Line 95: warning: exported function NewScene should have comment or be unexported (golint)
    • kero/framework/graphics/bsp.go
    • Line 105: warning: comment on exported type Bsp should be of the form "Bsp ..." (with optional leading article) (golint)
    • Line 126: warning: comment on exported method Bsp.Mesh should be of the form "Mesh ..." (golint)
    • Line 131: warning: comment on exported method Bsp.Faces should be of the form "Faces ..." (golint)
    • Line 136: warning: comment on exported method Bsp.DispFaces should be of the form "DispFaces ..." (golint)
    • Line 141: warning: comment on exported method Bsp.MaterialDictionary should be of the form "MaterialDictionary ..." (golint)
    • Line 146: warning: exported method Bsp.TexInfos should have comment or be unexported (golint)
    • Line 150: warning: exported method Bsp.Camera should have comment or be unexported (golint)
    • Line 154: warning: exported method Bsp.SetCamera should have comment or be unexported (golint)
    • Line 158: warning: exported method Bsp.File should have comment or be unexported (golint)
    • Line 162: warning: exported method Bsp.LightmapAtlas should have comment or be unexported (golint)
    • Line 166: warning: comment on exported function NewBsp should be of the form "NewBsp ..." (golint)
    • Line 186: warning: comment on exported type BspFace should be of the form "BspFace ..." (with optional leading article) (golint)
    • Line 195: warning: comment on exported method BspFace.Offset should be of the form "Offset ..." (golint)
    • Line 200: warning: comment on exported method BspFace.Length should be of the form "Length ..." (golint)
    • Line 205: warning: exported method BspFace.Material should have comment or be unexported (golint)
    • Line 209: warning: exported method BspFace.SetMaterial should have comment or be unexported (golint)
    • Line 213: warning: exported method BspFace.TexInfo should have comment or be unexported (golint)
    • Line 217: warning: exported method BspFace.RawFace should have comment or be unexported (golint)
    • Line 221: warning: comment on exported function NewMeshFace should be of the form "NewMeshFace ..." (golint)
    • kero/framework/graphics/adapter/shader.go
    • Line 5: warning: exported type Shader should have comment or be unexported (golint)
    • Line 16: warning: exported method Shader.Add should have comment or be unexported (golint)
    • Line 20: warning: exported method Shader.Finish should have comment or be unexported (golint)
    • Line 24: warning: exported method Shader.Bind should have comment or be unexported (golint)
    • Line 29: warning: exported method Shader.GetUniform should have comment or be unexported (golint)
    • Line 33: warning: exported function NewShader should have comment or be unexported (golint)
    • kero/framework/gui/panel.go
    • Line 5: warning: exported function StartPanel should have comment or be unexported (golint)
    • Line 9: warning: exported function EndPanel should have comment or be unexported (golint)
    • kero/framework/physics/collision/rigidBody.go
    • Line 9: warning: exported type CollisionBodyType should have comment or be unexported (golint)
    • Line 12: warning: exported const RigidBodyTypeConvexHull should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type RigidBody should have comment or be unexported (golint)
    • Line 28: warning: exported type ConvexHull should have comment or be unexported (golint)
    • Line 32: warning: exported method ConvexHull.CollisionBodyType should have comment or be unexported (golint)
    • Line 36: warning: exported method ConvexHull.BulletHandle should have comment or be unexported (golint)
    • Line 40: warning: exported method ConvexHull.GetTransform should have comment or be unexported (golint)
    • Line 44: warning: exported method ConvexHull.SetTransform should have comment or be unexported (golint)
    • Line 48: warning: exported method ConvexHull.GetTranslation should have comment or be unexported (golint)
    • Line 52: warning: exported method ConvexHull.GetOrientation should have comment or be unexported (golint)
    • Line 61: warning: exported function NewConvexHull should have comment or be unexported (golint)
    • Line 70: warning: exported function NewConvexHullFromExistingShape should have comment or be unexported (golint)
    • Line 77: warning: exported function NewSphericalHull should have comment or be unexported (golint)
    • Line 86: warning: exported type OrientedBoundingBox should have comment or be unexported (golint)
    • Line 89: warning: exported method OrientedBoundingBox.CollisionBodyType should have comment or be unexported (golint)
    • Line 93: warning: exported type AxisAlignedBoundingBox should have comment or be unexported (golint)
    • Line 97: warning: exported method AxisAlignedBoundingBox.CollisionBodyType should have comment or be unexported (golint)
    • Line 101: warning: exported function NewAxisAlignedBoundingBox should have comment or be unexported (golint)
    • kero/framework/event/bus.go
    • Line 3: warning: comment on exported type IDispatcher should be of the form "IDispatcher ..." (with optional leading article) (golint)
    • Line 14: warning: exported function Get should have comment or be unexported (golint)
    • Line 61: warning: exported method Dispatcher.Initialize should have comment or be unexported (golint)
    • Line 65: warning: exported function NewDispatcher should have comment or be unexported (golint)
    • kero/framework/physics/collision/bullet/bullet.go
    • Line 12: warning: exported type BulletPhysicsIndice should have comment or be unexported (golint)
    • Line 13: warning: exported type BulletPhysicsSDKHandle should have comment or be unexported (golint)
    • Line 14: warning: exported type BulletDynamicWorldHandle should have comment or be unexported (golint)
    • Line 16: warning: exported function BulletNewPhysicsSDK should have comment or be unexported (golint)
    • Line 19: warning: exported function BulletNewDynamicWorld should have comment or be unexported (golint)
    • Line 23: warning: exported function BulletSetGravity should have comment or be unexported (golint)
    • Line 28: warning: exported function BulletStepSimulation should have comment or be unexported (golint)
    • Line 32: warning: exported function BulletDeleteDynamicWorld should have comment or be unexported (golint)
    • Line 36: warning: exported function BulletDeletePhysicsSDK should have comment or be unexported (golint)
    • Line 40: warning: comment on exported type BulletVec3 should be of the form "BulletVec3 ..." (with optional leading article) (golint)
    • Line 42: warning: exported type BulletQuat should have comment or be unexported (golint)
    • Line 44: warning: exported function Vec3ToBullet should have comment or be unexported (golint)
    • Line 92: warning: comment on exported type BulletRigidBodyHandle should be of the form "BulletRigidBodyHandle ..." (with optional leading article) (golint)
    • Line 97: warning: exported function NewRigidBody should have comment or be unexported (golint)
    • Line 105: warning: exported type BulletCollisionShapeHandle should have comment or be unexported (golint)
    • Line 109: warning: exported method BulletCollisionShapeHandle.AddVertex should have comment or be unexported (golint)
    • Line 113: warning: exported method BulletCollisionShapeHandle.AddVertices should have comment or be unexported (golint)
    • Line 122: warning: exported function BulletNewConvexHullShape should have comment or be unexported (golint)
    • Line 128: warning: exported function BulletNewSphericalHullShape should have comment or be unexported (golint)
    • Line 134: warning: exported function BulletNewCompoundShape should have comment or be unexported (golint)
    • Line 140: warning: exported function BulletNewStaticPlaneShape should have comment or be unexported (golint)
    • Line 147: warning: exported function BulletNewStaticTriangleShape should have comment or be unexported (golint)
    • Line 160: warning: exported function BulletNewBrushShape should have comment or be unexported (golint)
    • Line 169: warning: exported function BulletAddChildToCompoundShape should have comment or be unexported (golint)
    • Line 175: warning: exported function BulletAddRigidBody should have comment or be unexported (golint)
    • Line 179: warning: exported function BulletRemoveRigidBody should have comment or be unexported (golint)
    • Line 183: warning: exported function BulletDeleteRigidBody should have comment or be unexported (golint)
    • Line 187: warning: exported function BulletGetOpenGLMatrix should have comment or be unexported (golint)
    • Line 193: warning: exported function BulletSetOpenGLMatrix should have comment or be unexported (golint)
    • Line 198: warning: exported function BulletGetTranslation should have comment or be unexported (golint)
    • Line 204: warning: exported function BulletGetOrientation should have comment or be unexported (golint)
    • Line 210: warning: exported function BulletApplyImpulse should have comment or be unexported (golint)
    • kero/renderer/cache/gpuItem.go
    • Line 3: warning: exported type GpuItem should have comment or be unexported (golint)
    • Line 7: warning: comment on exported method GpuItem.Add should be of the form "Add ..." (golint)
    • Line 12: warning: comment on exported method GpuItem.Find should be of the form "Find ..." (golint)
    • Line 16: warning: exported method GpuItem.All should have comment or be unexported (golint)
    • Line 20: warning: comment on exported function NewGpuItemCache should be of the form "NewGpuItemCache ..." (golint)
    • kero/game/entity/prop_dynamic_ornament.go
    • Line 7: warning: comment on exported type PropDynamicOrnament should be of the form "PropDynamicOrnament ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported method PropDynamicOrnament.Classname should be of the form "Classname ..." (golint)
    • Line 17: warning: comment on exported method PropDynamicOrnament.PropPath should be of the form "PropPath ..." (golint)
    • kero/framework/console/convar.go
    • Line 11: warning: exported type Convar should have comment or be unexported (golint)
    • Line 17: warning: exported function GetConvar should have comment or be unexported (golint)
    • Line 24: warning: exported function GetConvarBoolean should have comment or be unexported (golint)
    • Line 31: warning: exported function SetConvarBoolean should have comment or be unexported (golint)
    • Line 35: warning: exported function GetConvarInt should have comment or be unexported (golint)
    • Line 42: warning: exported function SetConvarInt should have comment or be unexported (golint)
    • Line 46: warning: exported function GetConvarString should have comment or be unexported (golint)
    • Line 53: warning: exported function SetConvarString should have comment or be unexported (golint)
    • Line 68: warning: exported function AddConvarBool should have comment or be unexported (golint)
    • Line 76: warning: exported function AddConvarInt should have comment or be unexported (golint)
    • Line 84: warning: exported function AddConvarString should have comment or be unexported (golint)
    • kero/framework/gui/button.go
    • Line 5: warning: exported type Button should have comment or be unexported (golint)
    • Line 11: warning: exported method Button.Draw should have comment or be unexported (golint)
    • Line 17: warning: exported function NewButton should have comment or be unexported (golint)
    • kero/game/entity/prop_door_rotating.go
    • Line 7: warning: comment on exported type PropDoorRotating should be of the form "PropDoorRotating ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported method PropDoorRotating.Classname should be of the form "Classname ..." (golint)
    • Line 17: warning: comment on exported method PropDoorRotating.PropPath should be of the form "PropPath ..." (golint)
    • kero/game/entity/prop_physics_multiplayer.go
    • Line 7: warning: comment on exported type PropPhysicsMultiplayer should be of the form "PropPhysicsMultiplayer ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported method PropPhysicsMultiplayer.Classname should be of the form "Classname ..." (golint)
    • Line 17: warning: comment on exported method PropPhysicsMultiplayer.PropPath should be of the form "PropPath ..." (golint)
    • kero/framework/input/input.go
    • Line 8: warning: exported type ContextBindable should have comment or be unexported (golint)
    • Line 15: warning: exported function Keyboard should have comment or be unexported (golint)
    • Line 19: warning: exported function Mouse should have comment or be unexported (golint)
    • Line 23: warning: exported function PollInput should have comment or be unexported (golint)
    • Line 27: warning: exported function SetBoundWindow should have comment or be unexported (golint)
    • kero/framework/graphics/adapter/ogl.go
    • Line 11: warning: exported const ShaderTypeVertex should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type Texture should have comment or be unexported (golint)
    • Line 23: warning: exported type Mesh should have comment or be unexported (golint)
    • Line 32: warning: exported function Init should have comment or be unexported (golint)
    • Line 36: warning: exported function Viewport should have comment or be unexported (golint)
    • Line 40: warning: exported function ClearColor should have comment or be unexported (golint)
    • Line 44: warning: exported function ClearAll should have comment or be unexported (golint)
    • Line 48: warning: exported function Clear should have comment or be unexported (golint)
    • Line 52: warning: exported function ClearDepthBuffer should have comment or be unexported (golint)
    • Line 56: warning: exported function UploadTexture should have comment or be unexported (golint)
    • Line 66: warning: exported function ReleaseTextureResource should have comment or be unexported (golint)
    • Line 70: warning: exported function DeleteTextureResource should have comment or be unexported (golint)
    • Line 74: warning: exported function DeleteMeshResource should have comment or be unexported (golint)
    • Line 78: warning: exported function UploadLightmap should have comment or be unexported (golint)
    • Line 104: warning: exported function UploadCubemap should have comment or be unexported (golint)
    • Line 123: warning: exported function BindTexture should have comment or be unexported (golint)
    • Line 127: warning: exported function BindLightmap should have comment or be unexported (golint)
    • Line 131: warning: exported function BindCubemap should have comment or be unexported (golint)
    • Line 135: warning: comment on exported function TextureFormatFromVtfFormat should be of the form "TextureFormatFromVtfFormat ..." (golint)
    • Line 157: warning: exported type GpuMesh should have comment or be unexported (golint)
    • Line 159: warning: exported function UploadMesh should have comment or be unexported (golint)
    • Line 183: warning: exported function DrawArray should have comment or be unexported (golint)
    • Line 187: warning: exported function DrawIndexedArray should have comment or be unexported (golint)
    • Line 191: warning: exported function UpdateIndexArrayBuffer should have comment or be unexported (golint)
    • Line 195: warning: exported function DrawFace should have comment or be unexported (golint)
    • Line 200: warning: exported function BindMesh should have comment or be unexported (golint)
    • Line 204: warning: exported function PushMat4 should have comment or be unexported (golint)
    • Line 208: warning: exported function PushInt32 should have comment or be unexported (golint)
    • Line 212: warning: exported function PushFloat32 should have comment or be unexported (golint)
    • Line 216: warning: exported function GpuError should have comment or be unexported (golint)
    • Line 223: warning: exported function EnableBlending should have comment or be unexported (golint)
    • Line 227: warning: exported function DisableBlending should have comment or be unexported (golint)
    • Line 231: warning: exported function EnableDepthTesting should have comment or be unexported (golint)
    • Line 235: warning: exported function DisableDepthTesting should have comment or be unexported (golint)
    • Line 239: warning: exported function EnableZBufferWrite should have comment or be unexported (golint)
    • Line 243: warning: exported function DisableZBufferWrite should have comment or be unexported (golint)
    • Line 247: warning: exported function EnableBackFaceCulling should have comment or be unexported (golint)
    • Line 251: warning: exported function EnableFrontFaceCulling should have comment or be unexported (golint)
    • Line 258: warning: exported function DrawLine should have comment or be unexported (golint)
    • Line 278: warning: exported function DrawDebugLines should have comment or be unexported (golint)
    • Line 293: warning: exported function DrawDebugTriangles should have comment or be unexported (golint)
    • kero/gui/gui.go
    • Line 16: warning: exported type Gui should have comment or be unexported (golint)
    • Line 26: warning: exported method Gui.Initialize should have comment or be unexported (golint)
    • Line 61: warning: exported method Gui.Render should have comment or be unexported (golint)
    • Line 76: warning: exported function NewGui should have comment or be unexported (golint)
    • kero/game/entity/prop_dynamic.go
    • Line 7: warning: comment on exported type PropDynamic should be of the form "PropDynamic ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported method PropDynamic.Classname should be of the form "Classname ..." (golint)
    • Line 17: warning: comment on exported method PropDynamic.PropPath should be of the form "PropPath ..." (golint)
    • kero/game/entity/prop_physics_override.go
    • Line 7: warning: comment on exported type PropPhysicsOverride should be of the form "PropPhysicsOverride ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported method PropPhysicsOverride.Classname should be of the form "Classname ..." (golint)
    • Line 17: warning: comment on exported method PropPhysicsOverride.PropPath should be of the form "PropPath ..." (golint)
    • kero/framework/graphics/mesh/model.go
    • Line 8: warning: exported type ModelInstance should have comment or be unexported (golint)
    • Line 13: warning: exported type Model should have comment or be unexported (golint)
    • Line 21: warning: exported method Model.Meshes should have comment or be unexported (golint)
    • Line 25: warning: exported method Model.Materials should have comment or be unexported (golint)
    • Line 29: warning: exported method Model.AddMesh should have comment or be unexported (golint)
    • Line 33: warning: exported method Model.AddMaterial should have comment or be unexported (golint)
    • Line 37: warning: exported method Model.RigidBody should have comment or be unexported (golint)
    • Line 41: warning: exported method Model.AddRigidBody should have comment or be unexported (golint)
    • Line 45: warning: exported function NewModel should have comment or be unexported (golint)
    • kero/renderer/scene/gpu.go
    • Line 17: warning: exported type EntityPropCacheItem should have comment or be unexported (golint)
    • Line 23: warning: exported type GPUScene should have comment or be unexported (golint)
    • Line 32: warning: exported function GpuSceneFromFrameworkScene should have comment or be unexported (golint)
    • Line 116: warning: exported method GPUScene.LoadSingleProp should have comment or be unexported (golint)
    • kero/messages/engine.go
    • Line 4: warning: comment on exported const TypeEngineQuit should be of the form "TypeEngineQuit ..." (golint)
    • Line 6: warning: exported const TypeEngineDisconnect should have comment (or a comment on this block) or be unexported (golint)
    • kero/framework/graphics/texture.go
    • Line 12: warning: exported type Texture should have comment or be unexported (golint)
    • Line 28: warning: comment on exported method Texture2D.Width should be of the form "Width ..." (golint)
    • Line 33: warning: comment on exported method Texture2D.Height should be of the form "Height ..." (golint)
    • Line 43: warning: comment on exported method Texture2D.Release should be of the form "Release ..." (golint)
    • Line 48: warning: comment on exported function LoadTexture should be of the form "LoadTexture ..." (golint)
    • Line 56: warning: exported function NewTexture should have comment or be unexported (golint)
    • Line 66: warning: comment on exported function NewErrorTexture should be of the form "NewErrorTexture ..." (golint)
    • Line 182: warning: exported method TextureAtlas.AtlasEntry should have comment or be unexported (golint)
    • Line 189: warning: exported method TextureAtlas.Format should have comment or be unexported (golint)
    • Line 193: warning: exported method TextureAtlas.Width should have comment or be unexported (golint)
    • Line 197: warning: exported method TextureAtlas.Height should have comment or be unexported (golint)
    • Line 201: warning: exported method TextureAtlas.PopulatedWidth should have comment or be unexported (golint)
    • Line 205: warning: exported method TextureAtlas.PopulatedHeight should have comment or be unexported (golint)
    • Line 209: warning: exported method TextureAtlas.Image should have comment or be unexported (golint)
    • Line 213: warning: comment on exported method TextureAtlas.Release should be of the form "Release ..." (golint)
    • Line 214: warning: receiver name texture should be consistent with previous receiver name atlas for TextureAtlas (golint)
    • Line 221: warning: exported method TextureAtlas.AddRaw should have comment or be unexported (golint)
    • Line 234: warning: exported method TextureAtlas.Pack should have comment or be unexported (golint)
    • Line 377: warning: exported function NewTextureAtlas should have comment or be unexported (golint)
    • Line 387: warning: exported type AtlasTexture should have comment or be unexported (golint)
    • Line 395: warning: exported method AtlasTexture.Release should have comment or be unexported (golint)
    • kero/game/entity/prop_physics.go
    • Line 7: warning: comment on exported type PropPhysics should be of the form "PropPhysics ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported method PropPhysics.Classname should be of the form "Classname ..." (golint)
    • Line 17: warning: comment on exported method PropPhysics.PropPath should be of the form "PropPath ..." (golint)
    • kero/physics/collision/ray.go
    • Line 11: warning: exported type RayCastResult should have comment or be unexported (golint)
    • Line 17: warning: exported type Ray should have comment or be unexported (golint)
    • Line 20: warning: exported function TraceRayBetween should have comment or be unexported (golint)
    • Line 24: warning: exported function TraceRay should have comment or be unexported (golint)
    • Line 73: warning: exported function RayIntersectsAxisAlignedBoundingBox should have comment or be unexported (golint)
    • Line 109: warning: don't use underscores in Go names; var t_result should be tResult (golint)
    • Line 143: warning: exported function RayIntersectsTriangle should have comment or be unexported (golint)
    • Line 177: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • kero/physics/physicsSystem.go
    • Line 18: warning: exported type PhysicsSystem should have comment or be unexported (golint)
    • Line 33: warning: exported method PhysicsSystem.Initialize should have comment or be unexported (golint)
    • Line 44: warning: exported method PhysicsSystem.Update should have comment or be unexported (golint)
    • Line 185: warning: exported method PhysicsSystem.Cleanup should have comment or be unexported (golint)
    • Line 211: warning: exported function NewPhysicsSystem should have comment or be unexported (golint)
    • kero/framework/gui/text.go
    • Line 5: warning: exported type Text should have comment or be unexported (golint)
    • Line 9: warning: exported method Text.Render should have comment or be unexported (golint)
    • Line 13: warning: exported method Text.SetText should have comment or be unexported (golint)
    • Line 17: warning: exported function NewText should have comment or be unexported (golint)
    • kero/framework/graphics/common.go
    • Line 6: warning: exported const ExtensionVtf should have comment (or a comment on this block) or be unexported (golint)
    • Line 11: warning: exported type VirtualFileSystem should have comment or be unexported (golint)
    • kero/renderer/cache/gpuProp.go
    • Line 7: warning: exported type GpuProp should have comment or be unexported (golint)
    • Line 12: warning: exported method GpuProp.AddMesh should have comment or be unexported (golint)
    • Line 16: warning: exported method GpuProp.AddMaterial should have comment or be unexported (golint)
    • kero/renderer/cache/shader.go
    • Line 7: warning: exported type Shader should have comment or be unexported (golint)
    • Line 11: warning: comment on exported method Shader.Add should be of the form "Add ..." (golint)
    • Line 16: warning: comment on exported method Shader.Find should be of the form "Find ..." (golint)
    • Line 21: warning: comment on exported function NewShaderCache should be of the form "NewShaderCache ..." (golint)
    • kero/messages/input.go
    • Line 8: warning: comment on exported const TypeKeyPress should be of the form "TypeKeyPress ..." (golint)
    • Line 10: warning: comment on exported const TypeKeyRelease should be of the form "TypeKeyRelease ..." (golint)
    • kero/framework/entity/entity.go
    • Line 10: warning: comment on exported type IEntity should be of the form "IEntity ..." (with optional leading article) (golint)
    • Line 90: warning: exported method Entity.Model should have comment or be unexported (golint)
    • Line 93: warning: exported method Entity.AttachModel should have comment or be unexported (golint)
    • kero/renderer/renderer.go
    • Line 22: warning: exported type Renderer should have comment or be unexported (golint)
    • Line 35: warning: exported method Renderer.Initialize should have comment or be unexported (golint)
    • Line 54: warning: exported method Renderer.Render should have comment or be unexported (golint)
    • Line 99: warning: exported method Renderer.DrawDebug should have comment or be unexported (golint)
    • Line 130: warning: exported method Renderer.FinishFrame should have comment or be unexported (golint)
    • Line 202: warning: exported method Renderer.RenderBSPMaterial should have comment or be unexported (golint)
    • Line 293: warning: exported method Renderer.Cleanup should have comment or be unexported (golint)
    • Line 343: warning: exported function NewRenderer should have comment or be unexported (golint)
    • kero/scene/loaders/props.go
    • Line 15: warning: exported function LoadStaticProps should have comment or be unexported (golint)
    • Line 60: warning: exported function LoadEntityProps should have comment or be unexported (golint)
    • kero/framework/graphics/camera.go
    • Line 14: warning: comment on exported type Camera should be of the form "Camera ..." (with optional leading article) (golint)
    • Line 26: warning: comment on exported method Camera.Fov should be of the form "Fov ..." (golint)
    • Line 31: warning: comment on exported method Camera.AspectRatio should be of the form "AspectRatio ..." (golint)
    • Line 41: warning: comment on exported method Camera.Forwards should be of the form "Forwards ..." (golint)
    • Line 46: warning: comment on exported method Camera.Backwards should be of the form "Backwards ..." (golint)
    • Line 51: warning: comment on exported method Camera.Left should be of the form "Left ..." (golint)
    • Line 56: warning: comment on exported method Camera.Right should be of the form "Right ..." (golint)
    • Line 61: warning: comment on exported method Camera.Rotate should be of the form "Rotate ..." (golint)
    • kero/framework/input/keys.go
    • Line 8: warning: exported type Key should have comment or be unexported (golint)
    • Line 10: warning: exported type KeyAction should have comment or be unexported (golint)
    • Line 11: warning: exported type ModifierKey should have comment or be unexported (golint)
    • Line 14: warning: exported const KeyPress should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported const KeyUnknown should have comment (or a comment on this block) or be unexported (golint)
    • kero/game/entity/prop_dynamic_override.go
    • Line 7: warning: comment on exported type PropDynamicOverride should be of the form "PropDynamicOverride ..." (with optional leading article) (golint)
    • Line 12: warning: comment on exported method PropDynamicOverride.Classname should be of the form "Classname ..." (golint)
    • Line 17: warning: comment on exported method PropDynamicOverride.PropPath should be of the form "PropPath ..." (golint)
    • kero/renderer/cache/material.go
    • Line 8: warning: exported const ErrorMaterialPath should have comment (or a comment on this block) or be unexported (golint)
    • Line 11: warning: exported type GpuMaterial should have comment or be unexported (golint)
    • Line 16: warning: exported function NewGpuMaterial should have comment or be unexported (golint)
    • Line 23: warning: exported type Material should have comment or be unexported (golint)
    • Line 27: warning: comment on exported method Material.Add should be of the form "Add ..." (golint)
    • Line 32: warning: comment on exported method Material.Find should be of the form "Find ..." (golint)
    • Line 37: warning: comment on exported function NewMaterialCache should be of the form "NewMaterialCache ..." (golint)
    • kero/framework/graphics/mesh/mesh.go
    • Line 8: warning: exported type Mesh should have comment or be unexported (golint)
    • Line 10: warning: comment on exported type BasicMesh should be of the form "BasicMesh ..." (with optional leading article) (golint)
    • Line 20: warning: comment on exported method BasicMesh.AddVertex should be of the form "AddVertex ..." (golint)
    • Line 25: warning: comment on exported method BasicMesh.AddNormal should be of the form "AddNormal ..." (golint)
    • Line 30: warning: comment on exported method BasicMesh.AddUV should be of the form "AddUV ..." (golint)
    • Line 35: warning: comment on exported method BasicMesh.AddLightmapUV should be of the form "AddLightmapUV ..." (golint)
    • Line 40: warning: comment on exported method BasicMesh.AddTangent should be of the form "AddTangent ..." (golint)
    • Line 45: warning: comment on exported method BasicMesh.AddIndice should be of the form "AddIndice ..." (golint)
    • Line 50: warning: comment on exported method BasicMesh.Vertices should be of the form "Vertices ..." (golint)
    • Line 55: warning: comment on exported method BasicMesh.Normals should be of the form "Normals ..." (golint)
    • Line 60: warning: comment on exported method BasicMesh.UVs should be of the form "UVs ..." (golint)
    • Line 65: warning: comment on exported method BasicMesh.LightmapUVs should be of the form "LightmapUVs ..." (golint)
    • Line 70: warning: comment on exported method BasicMesh.Tangents should be of the form "Tangents ..." (golint)
    • Line 75: warning: comment on exported method BasicMesh.Indices should be of the form "Indices ..." (golint)
    • Line 80: warning: comment on exported method BasicMesh.GenerateTangents should be of the form "GenerateTangents ..." (golint)
    • Line 181: warning: comment on exported function NewMesh should be of the form "NewMesh ..." (golint)
    • kero/framework/scene/texture.go
    • Line 6: warning: exported const ErrorTexturePath should have comment (or a comment on this block) or be unexported (golint)
    • Line 10: warning: exported type TextureCache should have comment or be unexported (golint)
    • Line 14: warning: comment on exported method TextureCache.Add should be of the form "Add ..." (golint)
    • Line 19: warning: comment on exported method TextureCache.Find should be of the form "Find ..." (golint)
    • Line 24: warning: exported method TextureCache.All should have comment or be unexported (golint)
    • Line 28: warning: comment on exported function NewTextureCache should be of the form "NewTextureCache ..." (golint)
    • kero/messages/loading.go
    • Line 8: warning: comment on exported const TypeLoadingLevelParsed should be of the form "TypeLoadingLevelParsed ..." (golint)
    • Line 10: warning: comment on exported const TypeLoadingLevelProgress should be of the form "TypeLoadingLevelProgress ..." (golint)
    • Line 15: warning: comment on exported const LoadingProgressStateError should be of the form "LoadingProgressStateError ..." (golint)
    • Line 17: warning: comment on exported const LoadingProgressStateStarted should be of the form "LoadingProgressStateStarted ..." (golint)
    • Line 19: warning: comment on exported const LoadingProgressStateBSPParsed should be of the form "LoadingProgressStateBSPParsed ..." (golint)
    • Line 21: warning: comment on exported const LoadingProgressStateGeometryLoaded should be of the form "LoadingProgressStateGeometryLoaded ..." (golint)
    • Line 23: warning: comment on exported const LoadingProgressStateStaticPropsLoaded should be of the form "LoadingProgressStateStaticPropsLoaded ..." (golint)
    • Line 25: warning: comment on exported const LoadingProgressStateEntitiesLoaded should be of the form "LoadingProgressStateEntitiesLoaded ..." (golint)
    • Line 27: warning: comment on exported const LoadingProgressStateDynamicPropsLoaded should be of the form "LoadingProgressStateDynamicPropsLoaded ..." (golint)
    • Line 29: warning: comment on exported const LoadingProgressStateFinished should be of the form "LoadingProgressStateFinished ..." (golint)
    • Line 33: warning: exported type LoadingLevelParsed should have comment or be unexported (golint)
    • Line 37: warning: comment on exported method LoadingLevelParsed.Type should be of the form "Type ..." (golint)
    • Line 42: warning: comment on exported method LoadingLevelParsed.Level should be of the form "Level ..." (golint)
    • Line 47: warning: comment on exported function NewLoadingLevelParsed should be of the form "NewLoadingLevelParsed ..." (golint)
    • kero/framework/gui/frame.go
    • Line 8: warning: exported function BeginFrame should have comment or be unexported (golint)
    • Line 12: warning: exported function EndFrame should have comment or be unexported (golint)
    • kero/gui/views/menu/console.go
    • Line 39: warning: exported type Console should have comment or be unexported (golint)
    • Line 57: warning: exported method Console.Render should have comment or be unexported (golint)
    • Line 81: warning: exported method Console.AddMessage should have comment or be unexported (golint)
    • kero/messages/gui.go
    • Line 8: warning: comment on exported const TypeChangeLevel should be of the form "TypeChangeLevel ..." (golint)
    • kero/framework/gui/context/context.go
    • Line 8: warning: exported type ContextBindable should have comment or be unexported (golint)
    • Line 12: warning: exported type Context should have comment or be unexported (golint)
    • Line 17: warning: exported method Context.Imgui should have comment or be unexported (golint)
    • Line 21: warning: exported method Context.Close should have comment or be unexported (golint)
    • Line 26: warning: exported function NewContext should have comment or be unexported (golint)
    • kero/framework/scene/vis/visdata.go
    • Line 13: warning: exported function LoadVisData should have comment or be unexported (golint)
    • Line 17: warning: exported type Cluster should have comment or be unexported (golint)
    • Line 24: warning: exported type Vis should have comment or be unexported (golint)
    • Line 36: warning: exported method Vis.PVSForCluster should have comment or be unexported (golint)
    • Line 40: warning: exported method Vis.GetPVSCacheForCluster should have comment or be unexported (golint)
    • Line 97: warning: comment on exported method Vis.FindCurrentLeaf should be of the form "FindCurrentLeaf ..." (golint)
    • Line 126: warning: exported function NewVisFromBSP should have comment or be unexported (golint)
    • kero/framework/scene/staticScene.go
    • Line 21: warning: exported function CurrentScene should have comment or be unexported (golint)
    • Line 29: warning: exported function CloseCurrentScene should have comment or be unexported (golint)
    • Line 33: warning: exported type StaticScene should have comment or be unexported (golint)
    • Line 117: warning: exported function LoadStaticSceneFromBsp should have comment or be unexported (golint)
    • kero/framework/graphics/material.go
    • Line 7: warning: comment on exported type Material should be of the form "Material ..." (with optional leading article) (golint)
    • Line 28: warning: exported function NewMaterial should have comment or be unexported (golint)
    • Line 34: warning: exported function LoadMaterial should have comment or be unexported (golint)
    • kero/renderer/shaders/lightmappedgeneric.go
    • Line 3: warning: comment on exported var LightMappedGenericFragment should be of the form "LightMappedGenericFragment ..." (golint)
    • Line 79: warning: comment on exported var LightMappedGenericVertex should be of the form "LightMappedGenericVertex ..." (golint)
    • kero/framework/graphics/mesh/primitives.go
    • Line 88: warning: comment on exported type Cube should be of the form "Cube ..." (with optional leading article) (golint)
    • Line 93: warning: comment on exported function NewCube should be of the form "NewCube ..." (golint)
    • Line 104: warning: exported function NewCuboidFromMinMaxs should have comment or be unexported (golint)
    • kero/framework/graphics/frustum.go
    • Line 21: warning: comment on exported type Frustum should be of the form "Frustum ..." (with optional leading article) (golint)
    • Line 27: warning: comment on exported method Frustum.IsLeafInFrustum should be of the form "IsLeafInFrustum ..." (golint)
    • Line 32: warning: comment on exported method Frustum.IsCuboidInFrustum should be of the form "IsCuboidInFrustum ..." (golint)
    • Line 68: warning: exported method Frustum.IsPointInFrustum should have comment or be unexported (golint)
    • Line 182: warning: comment on exported function FrustumFromCamera should be of the form "FrustumFromCamera ..." (golint)
    • kero/gui/views/menu.go
    • Line 12: warning: exported type Menu should have comment or be unexported (golint)
    • Line 16: warning: exported method Menu.Render should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!