Preparing report...

Report for github.com/silbinarywolf/gml-go

A+    Excellent!    Found 74 issues across 148 files

Tweet

gofmt93%

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!


gocyclo95%

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.

    • gml-go/cmd/gmlgo/internal/generate/generate.go
    • Line 469: warning: cyclomatic complexity 38 of function (*Generator).generateType() is high (> 15) (gocyclo)
    • Line 713: warning: cyclomatic complexity 34 of function generateAssets() is high (> 15) (gocyclo)
    • Line 321: warning: cyclomatic complexity 20 of function generateGameObject() is high (> 15) (gocyclo)

golint51%

Golint is a linter for Go source code.

    • gml-go/example/worm/game/obj_worm_hole.go
    • Line 8: warning: exported type WormHole should have comment or be unexported (golint)
    • Line 12: warning: exported method WormHole.Create should have comment or be unexported (golint)
    • Line 12: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 17: warning: exported method WormHole.Update should have comment or be unexported (golint)
    • Line 17: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gml-go/gml/collision.go
    • Line 4: warning: exported const DEBUG_COLLISION should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported function CollisionRectList should have comment or be unexported (golint)
    • Line 46: warning: exported function PlaceFree should have comment or be unexported (golint)
    • gml-go/gml/keyboard_string_nonheadless.go
    • Line 16: warning: exported function ClearKeyboardString should have comment or be unexported (golint)
    • Line 20: warning: exported function SetKeyboardString should have comment or be unexported (golint)
    • Line 70: warning: should omit 2nd value from range; this loop is equivalent to `for pos := range ...` (golint)
    • gml-go/gml/mouse_nonheadless.go
    • Line 15: warning: exported function MouseCheckButton should have comment or be unexported (golint)
    • Line 19: warning: exported function MouseCheckPressed should have comment or be unexported (golint)
    • Line 34: warning: comment on exported function MousePosition should be of the form "MousePosition ..." (golint)
    • gml-go/gml/internal/geom/vec.go
    • Line 5: warning: exported type Vec should have comment or be unexported (golint)
    • Line 10: warning: exported method Vec.Sub should have comment or be unexported (golint)
    • Line 15: warning: exported method Vec.Dot should have comment or be unexported (golint)
    • Line 17: warning: exported method Vec.DistancePoint should have comment or be unexported (golint)
    • gml-go/example/worm/game/worm_body.go
    • Line 6: warning: exported const SproutLerp should have comment (or a comment on this block) or be unexported (golint)
    • Line 11: warning: exported type WormBody should have comment or be unexported (golint)
    • Line 18: warning: exported method WormBody.SeperationWidth should have comment or be unexported (golint)
    • Line 18: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gml-go/gml/audio/audio.go
    • Line 12: warning: exported type SoundIndex should have comment or be unexported (golint)
    • Line 16: warning: exported const SoundDirectoryBase should have comment (or a comment on this block) or be unexported (golint)
    • Line 62: warning: exported method SoundIndex.SetVolume should have comment or be unexported (golint)
    • gml-go/gml/custom_asset.go
    • Line 3: warning: exported type CustomAssetIndex should have comment or be unexported (golint)
    • Line 9: warning: exported method CustomAssetIndex.Path should have comment or be unexported (golint)
    • gml-go/gml/instance.go
    • Line 6: warning: exported type InstanceIndex should have comment or be unexported (golint)
    • Line 37: warning: exported method Object.InstanceIndex should have comment or be unexported (golint)
    • Line 41: warning: exported method Object.RoomInstanceIndex should have comment or be unexported (golint)
    • Line 53: warning: exported method InstanceIndex.Get should have comment or be unexported (golint)
    • gml-go/gml/sprite.go
    • Line 7: warning: exported type SpriteIndex should have comment or be unexported (golint)
    • Line 9: warning: exported type SpriteState should have comment or be unexported (golint)
    • gml-go/example/worm/game/obj_worm.go
    • Line 14: warning: exported const WormStartingBodyParts should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported type Worm should have comment or be unexported (golint)
    • Line 46: warning: exported method Worm.Create should have comment or be unexported (golint)
    • Line 46: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 59: warning: exported method Worm.Reset should have comment or be unexported (golint)
    • Line 59: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 75: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 77: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 93: warning: exported method Worm.TriggerDeath should have comment or be unexported (golint)
    • Line 93: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 111: warning: exported method Worm.CalcMedals should have comment or be unexported (golint)
    • Line 111: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 150: warning: exported method Worm.ScoreIncrease should have comment or be unexported (golint)
    • Line 150: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 195: warning: exported method Worm.Draw should have comment or be unexported (golint)
    • Line 195: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 218: warning: exported method Worm.Update should have comment or be unexported (golint)
    • Line 218: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 340: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • gml-go/cmd/gmlgo/internal/shared/shared.go
    • Line 14: warning: exported const RootCmd should have comment or be unexported (golint)
    • Line 46: warning: comment on exported function OpenBrowser should be of the form "OpenBrowser ..." (golint)
    • Line 67: warning: exported function ReadDefaultIndexHTML should have comment or be unexported (golint)
    • Line 80: warning: exported function ReadDefaultWasmJS should have comment or be unexported (golint)
    • gml-go/gml/camera.go
    • Line 53: warning: exported function CameraCreate should have comment or be unexported (golint)
    • Line 70: warning: exported function CameraDestroy should have comment or be unexported (golint)
    • Line 79: warning: exported function CameraSetViewSize should have comment or be unexported (golint)
    • Line 91: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 138: warning: exported function CameraGetViewPos should have comment or be unexported (golint)
    • Line 146: warning: exported function CameraGetViewSize should have comment or be unexported (golint)
    • Line 154: warning: exported function CameraSetViewPos should have comment or be unexported (golint)
    • Line 164: warning: exported function CameraSetUpdateFunction should have comment or be unexported (golint)
    • Line 169: warning: exported function CameraSetViewTarget should have comment or be unexported (golint)
    • gml-go/example/worm/game/obj_wall.go
    • Line 8: warning: exported function WallSpeed should have comment or be unexported (golint)
    • Line 13: warning: exported type Wall should have comment or be unexported (golint)
    • Line 26: warning: exported method Wall.Create should have comment or be unexported (golint)
    • Line 26: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 31: warning: exported method Wall.Update should have comment or be unexported (golint)
    • Line 31: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gml-go/example/worm/game/obj_menu.go
    • Line 11: warning: exported const MenuFadeOutSpeed should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported type Menu should have comment or be unexported (golint)
    • Line 21: warning: exported method Menu.Create should have comment or be unexported (golint)
    • Line 21: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 32: warning: exported method Menu.Update should have comment or be unexported (golint)
    • Line 32: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 48: warning: exported method Menu.Destroy should have comment or be unexported (golint)
    • Line 48: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 52: warning: exported method Menu.Draw should have comment or be unexported (golint)
    • Line 52: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gml-go/gml/internal/file/file.go
    • Line 8: warning: exported const AssetDirectoryBase should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported var AssetDirectory should have comment or be unexported (golint)
    • Line 15: warning: comment on exported var ProgramDirectory should be of the form "ProgramDirectory ..." (golint)
    • Line 27: warning: exported function InitAssetDir should have comment or be unexported (golint)
    • Line 36: warning: exported function SetAssetDir should have comment or be unexported (golint)
    • gml-go/gml/gml.go
    • Line 13: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 16: warning: exported type DefaultContext should have comment or be unexported (golint)
    • Line 18: warning: exported method DefaultContext.Open should have comment or be unexported (golint)
    • Line 21: warning: exported method DefaultContext.Close should have comment or be unexported (golint)
    • Line 24: warning: exported method DefaultContext.Update should have comment or be unexported (golint)
    • Line 41: warning: exported method DefaultContext.Draw should have comment or be unexported (golint)
    • Line 84: warning: exported type GameSettings should have comment or be unexported (golint)
    • Line 91: warning: exported type TestSettings should have comment or be unexported (golint)
    • Line 175: warning: comment on exported function DesignedTPS should be of the form "DesignedTPS ..." (golint)
    • Line 203: warning: comment on exported function Run should be of the form "Run ..." (golint)
    • Line 235: warning: exported function ContextUpdatePop should have comment or be unexported (golint)
    • Line 244: warning: comment on exported function ContextUpdatePush should be of the form "ContextUpdatePush ..." (golint)
    • gml-go/example/spaceship/game/game.go
    • Line 8: warning: exported var Global should have comment or be unexported (golint)
    • Line 10: warning: exported type GameController should have comment or be unexported (golint)
    • Line 16: warning: exported method GameController.GameStart should have comment or be unexported (golint)
    • Line 16: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • gml-go/example/spaceship/game/obj_player.go
    • Line 13: warning: exported type Player should have comment or be unexported (golint)
    • Line 19: warning: exported method Player.Create should have comment or be unexported (golint)
    • Line 19: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 23: warning: exported method Player.Update should have comment or be unexported (golint)
    • Line 23: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 48: warning: exported method Player.Draw should have comment or be unexported (golint)
    • Line 48: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gml-go/gml/internal/sprite/sprite_manager.go
    • Line 10: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 17: warning: exported const SpriteDirectoryBase should have comment (or a comment on this block) or be unexported (golint)
    • Line 101: warning: exported function SpriteNames should have comment or be unexported (golint)
    • Line 116: warning: exported function SpriteLoad should have comment or be unexported (golint)
    • gml-go/gml/internal/sprite/sprite_state.go
    • Line 17: warning: exported type SpriteState should have comment or be unexported (golint)
    • Line 23: warning: exported function GetCollisionMask should have comment or be unexported (golint)
    • Line 31: warning: exported method SpriteState.SpriteIndex should have comment or be unexported (golint)
    • Line 33: warning: exported method SpriteState.ImageIndex should have comment or be unexported (golint)
    • Line 34: warning: exported method SpriteState.ImageSpeed should have comment or be unexported (golint)
    • Line 40: warning: exported method SpriteState.ImageNumber should have comment or be unexported (golint)
    • Line 48: warning: exported method SpriteState.SetSprite should have comment or be unexported (golint)
    • Line 58: warning: exported method SpriteState.SetImageIndex should have comment or be unexported (golint)
    • Line 71: warning: exported method SpriteState.ImageUpdate should have comment or be unexported (golint)
    • Line 87: warning: exported method SpriteState.UnsafeSnapshotMarshalBinary should have comment or be unexported (golint)
    • Line 100: warning: exported method SpriteState.UnsafeSnapshotUnmarshalBinary should have comment or be unexported (golint)
    • gml-go/cmd/gmlgo/internal/generate/generate.go
    • Line 25: warning: exported var Cmd should have comment or be unexported (golint)
    • Line 49: warning: exported type Arguments should have comment or be unexported (golint)
    • Line 63: warning: exported method Generator.Printf should have comment or be unexported (golint)
    • Line 67: warning: exported method Generator.Headerf should have comment or be unexported (golint)
    • Line 71: warning: exported type Parser should have comment or be unexported (golint)
    • Line 81: warning: exported type Package should have comment or be unexported (golint)
    • Line 107: warning: exported function Run should have comment or be unexported (golint)
    • Line 224: warning: exported type Struct should have comment or be unexported (golint)
    • Line 232: warning: exported type AssetKind should have comment or be unexported (golint)
    • Line 237: warning: exported type Asset should have comment or be unexported (golint)
    • Line 344: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • gml-go/gml/room_instance.go
    • Line 10: warning: exported type RoomInstanceIndex should have comment or be unexported (golint)
    • Line 55: warning: exported method RoomInstanceIndex.InstanceChangeRoom should have comment or be unexported (golint)
    • Line 124: warning: exported method RoomInstanceIndex.SetSize should have comment or be unexported (golint)
    • Line 142: warning: receiver name roomIndex should be consistent with previous receiver name roomInstanceIndex for RoomInstanceIndex (golint)
    • gml-go/gml/window_nonheadless.go
    • Line 12: warning: exported function WindowCursorVisible should have comment or be unexported (golint)
    • Line 16: warning: exported function WindowSetCursorVisible should have comment or be unexported (golint)
    • Line 28: warning: exported function WindowGetFullscreen should have comment or be unexported (golint)
    • Line 32: warning: exported function WindowSetFullscreen should have comment or be unexported (golint)
    • Line 36: warning: exported function WindowSetSize should have comment or be unexported (golint)
    • Line 42: warning: exported function WindowSetScale should have comment or be unexported (golint)
    • Line 47: warning: exported function WindowScale should have comment or be unexported (golint)
    • gml-go/gml/gamepad_headed.go
    • Line 60: warning: exported function GamepadButtonCount should have comment or be unexported (golint)
    • Line 68: warning: exported function GamepadCheck should have comment or be unexported (golint)
    • Line 84: warning: exported function GamepadCheckPressed should have comment or be unexported (golint)
    • Line 88: warning: exported function GamepadAxisCount should have comment or be unexported (golint)
    • Line 92: warning: exported function GamepadAxisValue should have comment or be unexported (golint)
    • Line 96: warning: exported function GamepadGetDescription should have comment or be unexported (golint)
    • Line 117: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • gml-go/gml/object.go
    • Line 18: warning: exported type ObjectIndex should have comment or be unexported (golint)
    • Line 37: warning: exported type ObjectType should have comment or be unexported (golint)
    • Line 67: warning: exported type Object should have comment or be unexported (golint)
    • Line 72: warning: exported method Object.Create should have comment or be unexported (golint)
    • Line 74: warning: exported method Object.Update should have comment or be unexported (golint)
    • Line 76: warning: exported method Object.Destroy should have comment or be unexported (golint)
    • Line 78: warning: exported method Object.Free should have comment or be unexported (golint)
    • Line 80: warning: exported method Object.Draw should have comment or be unexported (golint)
    • Line 84: warning: exported method Object.Bbox should have comment or be unexported (golint)
    • Line 109: warning: exported method Object.SetSolid should have comment or be unexported (golint)
    • Line 113: warning: exported method Object.Solid should have comment or be unexported (golint)
    • Line 114: warning: exported method Object.BaseObject should have comment or be unexported (golint)
    • Line 115: warning: exported method Object.ObjectName should have comment or be unexported (golint)
    • Line 116: warning: exported method Object.ObjectIndex should have comment or be unexported (golint)
    • Line 117: warning: exported method Object.ImageAngleRadians should have comment or be unexported (golint)
    • Line 118: warning: exported method Object.ImageAngle should have comment or be unexported (golint)
    • Line 148: warning: exported method Object.SetImageAngle should have comment or be unexported (golint)
    • Line 152: warning: exported method Object.SetImageAngleRadians should have comment or be unexported (golint)
    • Line 156: warning: exported method Object.UnsafeSnapshotMarshalBinary should have comment or be unexported (golint)
    • Line 193: warning: exported method Object.UnsafeSnapshotUnmarshalBinary should have comment or be unexported (golint)
    • gml-go/example/spaceship/game/obj_enemy_ship.go
    • Line 8: warning: exported type EnemyShip should have comment or be unexported (golint)
    • Line 12: warning: exported method EnemyShip.Create should have comment or be unexported (golint)
    • Line 12: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 17: warning: exported method EnemyShip.Destroy should have comment or be unexported (golint)
    • Line 17: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 21: warning: exported method EnemyShip.Update should have comment or be unexported (golint)
    • Line 21: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gml-go/example/worm/game/constants.go
    • Line 10: warning: exported const WindowTitle should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported const DepthBackground should have comment (or a comment on this block) or be unexported (golint)
    • gml-go/example/worm/game/wall_spawner.go
    • Line 11: warning: exported type WallSpawner should have comment or be unexported (golint)
    • Line 17: warning: exported method WallSpawner.Reset should have comment or be unexported (golint)
    • Line 17: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 30: warning: exported method WallSpawner.Update should have comment or be unexported (golint)
    • Line 30: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gml-go/gml/internal/sprite/sprite.go
    • Line 11: warning: exported const SprUndefined should have comment or be unexported (golint)
    • Line 13: warning: exported type Sprite should have comment or be unexported (golint)
    • Line 21: warning: exported method Sprite.Name should have comment or be unexported (golint)
    • Line 30: warning: exported type SpriteIndex should have comment or be unexported (golint)
    • Line 32: warning: exported method SpriteIndex.Name should have comment or be unexported (golint)
    • Line 40: warning: exported method SpriteIndex.Size should have comment or be unexported (golint)
    • Line 48: warning: exported function SpriteCollisionMask should have comment or be unexported (golint)
    • Line 66: warning: exported method SpriteIndex.ImageSpeed should have comment or be unexported (golint)
    • gml-go/gml/object_test.go
    • Line 13: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 15: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 23: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 25: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 27: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • gml-go/gml/internal/geom/deprecated.go
    • Line 10: warning: exported type RoomEditorDebugRect should have comment or be unexported (golint)
    • Line 15: warning: exported method RoomEditorDebugRect.Left should have comment or be unexported (golint)
    • Line 16: warning: exported method RoomEditorDebugRect.Right should have comment or be unexported (golint)
    • Line 17: warning: exported method RoomEditorDebugRect.Top should have comment or be unexported (golint)
    • Line 18: warning: exported method RoomEditorDebugRect.Bottom should have comment or be unexported (golint)
    • Line 20: warning: exported function R should have comment or be unexported (golint)
    • gml-go/example/worm/game/obj_checkpoint.go
    • Line 7: warning: exported type Checkpoint should have comment or be unexported (golint)
    • Line 11: warning: exported method Checkpoint.Create should have comment or be unexported (golint)
    • Line 11: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 16: warning: exported method Checkpoint.Update should have comment or be unexported (golint)
    • Line 16: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gml-go/gml/controller.go
    • Line 12: warning: exported type Controller should have comment or be unexported (golint)
    • Line 15: warning: exported method Controller.GamePreUpdate should have comment or be unexported (golint)
    • Line 16: warning: exported method Controller.GamePostUpdate should have comment or be unexported (golint)
    • Line 17: warning: exported method Controller.GamePreDraw should have comment or be unexported (golint)
    • Line 18: warning: exported method Controller.GamePostDraw should have comment or be unexported (golint)
    • gml-go/gml/internal/sprite/collision_mask.go
    • Line 8: warning: exported const CollisionMaskInherit should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported type CollisionMaskKind should have comment or be unexported (golint)
    • Line 14: warning: exported type CollisionMask should have comment or be unexported (golint)
    • gml-go/gml/file.go
    • Line 7: warning: exported function AssetDirectory should have comment or be unexported (golint)
    • Line 11: warning: exported function CustomAssetDirectory should have comment or be unexported (golint)
    • Line 15: warning: exported function ProgramDirectory should have comment or be unexported (golint)
    • gml-go/example/worm/game/obj_background.go
    • Line 9: warning: exported const FrontCityHspeed should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported type Background should have comment or be unexported (golint)
    • Line 21: warning: exported method Background.Create should have comment or be unexported (golint)
    • Line 21: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 25: warning: exported method Background.Update should have comment or be unexported (golint)
    • Line 25: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 58: warning: exported method Background.Draw should have comment or be unexported (golint)
    • Line 58: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gml-go/example/worm/game/game.go
    • Line 13: warning: exported var Global should have comment or be unexported (golint)
    • Line 15: warning: exported type GameController should have comment or be unexported (golint)
    • Line 27: warning: exported type Medal should have comment or be unexported (golint)
    • Line 30: warning: exported const MedalNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported type GameScore should have comment or be unexported (golint)
    • Line 41: warning: exported type PersistentGameData should have comment or be unexported (golint)
    • Line 48: warning: exported method GameController.HasWormStopped should have comment or be unexported (golint)
    • Line 57: warning: exported method GameController.GameStart should have comment or be unexported (golint)
    • Line 90: warning: exported method GameController.MusicRandomizeTrack should have comment or be unexported (golint)
    • Line 120: warning: exported method GameController.GamePreUpdate should have comment or be unexported (golint)
    • Line 127: warning: exported method GameController.GameReset should have comment or be unexported (golint)
    • Line 164: warning: exported method GameController.GamePostDraw should have comment or be unexported (golint)
    • gml-go/example/worm/game/obj_menu_gameover.go
    • Line 10: warning: exported const MenuGameOverAccelerationSpeed should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported type MenuGameover should have comment or be unexported (golint)
    • Line 22: warning: exported method MenuGameover.Create should have comment or be unexported (golint)
    • Line 22: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 50: warning: exported method MenuGameover.Update should have comment or be unexported (golint)
    • Line 50: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 87: warning: exported method MenuGameover.Destroy should have comment or be unexported (golint)
    • Line 87: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 92: warning: exported method MenuGameover.Draw should have comment or be unexported (golint)
    • Line 92: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • gml-go/gml/gamepad.go
    • Line 5: warning: exported type GamepadButton should have comment or be unexported (golint)
    • Line 7: warning: exported type GamepadAxis should have comment or be unexported (golint)
    • Line 12: warning: exported const GpButtonNone should have comment (or a comment on this block) or be unexported (golint)
    • gml-go/gml/geom.go
    • Line 7: warning: exported type Vec should have comment or be unexported (golint)
    • Line 9: warning: exported type Rect should have comment or be unexported (golint)
    • gml-go/gml/internal/dt/dt.go
    • Line 8: warning: exported const DefaultMaxTPS should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: comment on exported function DesignedTPS should be of the form "DesignedTPS ..." (golint)
    • gml-go/gml/internal/geom/rect.go
    • Line 3: warning: exported type Rect should have comment or be unexported (golint)
    • Line 8: warning: exported method Rect.Pos should have comment or be unexported (golint)
    • Line 12: warning: exported method Rect.Left should have comment or be unexported (golint)
    • Line 13: warning: exported method Rect.Right should have comment or be unexported (golint)
    • Line 14: warning: exported method Rect.Top should have comment or be unexported (golint)
    • Line 15: warning: exported method Rect.Bottom should have comment or be unexported (golint)
    • Line 17: warning: exported method Rect.DistancePoint should have comment or be unexported (golint)
    • Line 69: warning: exported method Rect.CollisionPoint should have comment or be unexported (golint)
    • Line 74: warning: exported method Rect.CollisionRectangle should have comment or be unexported (golint)
    • Line 74: warning: receiver name r1 should be consistent with previous receiver name rect for Rect (golint)
    • gml-go/gml/draw_nonheadless.go
    • Line 71: warning: exported function DrawSprite should have comment or be unexported (golint)
    • Line 97: warning: exported function DrawSpriteAlpha should have comment or be unexported (golint)
    • Line 101: warning: exported function DrawSpriteScaled should have comment or be unexported (golint)
    • Line 105: warning: exported function DrawSpriteRotated should have comment or be unexported (golint)
    • Line 109: warning: exported function DrawSpriteExt should have comment or be unexported (golint)
    • Line 157: warning: exported function DrawRectangle should have comment or be unexported (golint)
    • Line 167: warning: exported function DrawRectangleAlpha should have comment or be unexported (golint)
    • Line 174: warning: exported function DrawRectangleBorder should have comment or be unexported (golint)
    • Line 226: warning: exported function DrawTextAlpha should have comment or be unexported (golint)
    • gml-go/example/worm/game/wall/walls_set.go
    • Line 7: warning: exported var WallSetFlat should have comment or be unexported (golint)
    • Line 14: warning: exported var WallSetFlatHard should have comment or be unexported (golint)
    • Line 19: warning: exported var WallSetFly1 should have comment or be unexported (golint)
    • Line 25: warning: exported var WallSetFly2 should have comment or be unexported (golint)
    • Line 29: warning: exported var WallSetFly3 should have comment or be unexported (golint)
    • Line 35: warning: exported var WallSetFly4 should have comment or be unexported (golint)
    • Line 39: warning: exported var WallSetFly5 should have comment or be unexported (golint)
    • gml-go/gml/draw.go
    • Line 7: warning: exported type SpriteFrame should have comment or be unexported (golint)
    • Line 12: warning: exported type DrawSpriteMaskOptions should have comment or be unexported (golint)
    • Line 16: warning: exported function DrawSelf should have comment or be unexported (golint)
    • gml-go/gml/alarm/alarm.go
    • Line 16: warning: exported type Alarm should have comment or be unexported (golint)
    • Line 25: warning: exported method Alarm.Get should have comment or be unexported (golint)
    • Line 80: warning: exported method Alarm.UnsafeSnapshotMarshalBinary should have comment or be unexported (golint)
    • Line 87: warning: exported method Alarm.UnsafeSnapshotUnmarshalBinary should have comment or be unexported (golint)
    • Line 94: warning: exported method Alarm.MarshalBinary should have comment or be unexported (golint)
    • Line 102: warning: exported method Alarm.UnmarshalBinary should have comment or be unexported (golint)
    • gml-go/example/worm/game/notification.go
    • Line 10: warning: exported type LerpDir should have comment or be unexported (golint)
    • Line 13: warning: exported const LerpIn should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported const LerpSpeed should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type Notification should have comment or be unexported (golint)
    • Line 29: warning: exported method Notification.SetNotification should have comment or be unexported (golint)
    • Line 29: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 35: warning: exported method Notification.Update should have comment or be unexported (golint)
    • Line 35: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 54: warning: exported method Notification.Draw should have comment or be unexported (golint)
    • Line 54: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 67: warning: comment on exported function LerpBias should be of the form "LerpBias ..." (golint)
    • Line 82: warning: comment on exported function LerpGain should be of the form "LerpGain ..." (golint)
    • Line 91: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • gml-go/gml/keyboard_headed.go
    • Line 21: warning: exported function KeyboardCheck should have comment or be unexported (golint)
    • Line 25: warning: exported function KeyboardCheckPressed should have comment or be unexported (golint)
    • Line 30: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • gml-go/example/spaceship/game/obj_bullet.go
    • Line 8: warning: exported type Bullet should have comment or be unexported (golint)
    • Line 13: warning: exported method Bullet.Create should have comment or be unexported (golint)
    • Line 13: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 17: warning: exported method Bullet.Update should have comment or be unexported (golint)
    • Line 17: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell99%

Misspell Finds commonly misspelled English words