Preparing report...

Report for github.com/goplus/spx

(v0.9.9)

A    Great!    Found 22 issues across 44 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


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.

    • internal/anim/anim.go
    • Line 193: warning: cyclomatic complexity 27 of function (*Animation)._interpolate() is high (> 15) (gocyclo)
    • Line 318: warning: cyclomatic complexity 20 of function (*Animation).Animate() is high (> 15) (gocyclo)
    • measure.go
    • Line 105: warning: cyclomatic complexity 19 of function (*measure).getTextPos() is high (> 15) (gocyclo)

golint54%

Golint is a linter for Go source code.

    • fs/local/localfs.go
    • Line 12: warning: exported type FS should have comment or be unexported (golint)
    • Line 28: warning: receiver name f should be consistent with previous receiver name p for FS (golint)
    • internal/tools/easing.go
    • Line 7: warning: exported type IEasingCoreFunction should have comment or be unexported (golint)
    • Line 11: warning: exported type IEasingFunction should have comment or be unexported (golint)
    • Line 20: warning: exported type EasingMode should have comment or be unexported (golint)
    • Line 23: warning: comment on exported const EASINGMODE_EASEIN should be of the form "EASINGMODE_EASEIN ..." (golint)
    • Line 28: warning: comment on exported const EASINGMODE_EASEOUT should be of the form "EASINGMODE_EASEOUT ..." (golint)
    • Line 33: warning: comment on exported const EASINGMODE_EASEINOUT should be of the form "EASINGMODE_EASEINOUT ..." (golint)
    • Line 39: warning: exported type EasingFunction 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 53: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 57: warning: exported method EasingFunction.EaseInCore should have comment or be unexported (golint)
    • Line 57: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 61: warning: exported method EasingFunction.Ease should have comment or be unexported (golint)
    • Line 61: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 78: warning: comment on exported type CircleEase should be of the form "CircleEase ..." (with optional leading article) (golint)
    • Line 86: warning: exported function NewCircleEase should have comment or be unexported (golint)
    • Line 90: warning: exported method CircleEase.EaseInCore should have comment or be unexported (golint)
    • Line 90: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 95: warning: comment on exported type BackEase should be of the form "BackEase ..." (with optional leading article) (golint)
    • Line 105: warning: exported function NewBackEase should have comment or be unexported (golint)
    • Line 111: warning: comment on exported method BackEase.EaseInCore should be of the form "EaseInCore ..." (golint)
    • Line 112: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 122: warning: exported type BounceEase should have comment or be unexported (golint)
    • Line 132: warning: exported function NewBounceEase should have comment or be unexported (golint)
    • Line 138: warning: exported method BounceEase.EaseInCore should have comment or be unexported (golint)
    • Line 138: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • internal/coroutine/coro.go
    • Line 14: warning: exported var ErrAbortThread should have comment or be unexported (golint)
    • Line 19: warning: exported type ThreadObj should have comment or be unexported (golint)
    • Line 83: warning: exported method Coroutines.Abort should have comment or be unexported (golint)
    • Line 91: warning: exported method Coroutines.Current should have comment or be unexported (golint)
    • event.go
    • Line 231: warning: don't use underscores in Go names; method OnKey__0 should be OnKey0 (golint)
    • Line 247: warning: don't use underscores in Go names; method OnKey__1 should be OnKey1 (golint)
    • Line 269: warning: don't use underscores in Go names; method OnKey__2 should be OnKey2 (golint)
    • Line 275: warning: don't use underscores in Go names; method OnMsg__0 should be OnMsg0 (golint)
    • Line 283: warning: don't use underscores in Go names; method OnMsg__1 should be OnMsg1 (golint)
    • Line 299: warning: don't use underscores in Go names; method OnScene__0 should be OnScene0 (golint)
    • Line 307: warning: don't use underscores in Go names; method OnScene__1 should be OnScene1 (golint)
    • input.go
    • Line 9: warning: exported type Key should have comment or be unexported (golint)
    • Line 12: warning: exported const Key0 should have comment (or a comment on this block) or be unexported (golint)
    • spbase.go
    • Line 34: warning: exported const Prev should have comment (or a comment on this block) or be unexported (golint)
    • utils.go
    • Line 23: warning: exported function Rand__0 should have comment or be unexported (golint)
    • Line 23: warning: don't use underscores in Go names; func Rand__0 should be Rand0 (golint)
    • Line 30: warning: exported function Rand__1 should have comment or be unexported (golint)
    • Line 30: warning: don't use underscores in Go names; func Rand__1 should be Rand1 (golint)
    • Line 45: warning: comment on exported function RGB should be of the form "RGB ..." (golint)
    • Line 50: warning: exported function RGBA should have comment or be unexported (golint)
    • Line 111: warning: comment on exported function Exit should be of the form "Exit ..." (golint)
    • internal/math32/vector2.go
    • Line 8: warning: exported type Vector2 should have comment or be unexported (golint)
    • Line 13: warning: exported function NewVector2 should have comment or be unexported (golint)
    • Line 16: warning: exported function NewVector2Zero should have comment or be unexported (golint)
    • Line 20: warning: exported method Vector2.Set should have comment or be unexported (golint)
    • Line 20: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 24: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 28: warning: exported method Vector2.Coords should have comment or be unexported (golint)
    • Line 28: 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 Vector2.Add 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 37: warning: exported method Vector2.Sub should have comment or be unexported (golint)
    • Line 37: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 42: warning: exported method Vector2.Scale should have comment or be unexported (golint)
    • Line 42: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 47: warning: exported method Vector2.Equals should have comment or be unexported (golint)
    • Line 47: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 51: warning: exported method Vector2.Multiply should have comment or be unexported (golint)
    • Line 51: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 56: warning: exported method Vector2.Length should have comment or be unexported (golint)
    • Line 56: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 60: warning: exported method Vector2.LengthSquared should have comment or be unexported (golint)
    • Line 60: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 64: warning: exported method Vector2.Normalize should have comment or be unexported (golint)
    • Line 64: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 74: warning: exported method Vector2.Clone should have comment or be unexported (golint)
    • Line 74: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 79: warning: exported method Vector2.CopyFrom should have comment or be unexported (golint)
    • Line 79: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 84: warning: exported method Vector2.Lerp should have comment or be unexported (golint)
    • Line 84: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 90: warning: comment on exported method Vector2.Invert should be of the form "Invert ..." (golint)
    • Line 91: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 98: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • internal/gdi/font.go
    • Line 21: warning: exported type Font should have comment or be unexported (golint)
    • Line 23: warning: exported type DefaultFont should have comment or be unexported (golint)
    • Line 30: warning: exported type FontOptions should have comment or be unexported (golint)
    • Line 32: warning: exported function NewDefaultFont should have comment or be unexported (golint)
    • Line 38: warning: exported method DefaultFont.Close should have comment or be unexported (golint)
    • Line 119: warning: exported method DefaultFont.Glyph should have comment or be unexported (golint)
    • Line 128: warning: exported method DefaultFont.GlyphBounds should have comment or be unexported (golint)
    • Line 136: warning: exported method DefaultFont.GlyphAdvance should have comment or be unexported (golint)
    • Line 144: warning: exported method DefaultFont.Kern should have comment or be unexported (golint)
    • Line 149: warning: exported method DefaultFont.Metrics should have comment or be unexported (golint)
    • internal/gdi/svg.go
    • Line 42: warning: exported type SVG should have comment or be unexported (golint)
    • Line 46: warning: exported function NewSVG should have comment or be unexported (golint)
    • Line 53: warning: exported method SVG.ToImage should have comment or be unexported (golint)
    • internal/anim/anim.go
    • Line 14: warning: exported const ANIMATIONTYPE_INT should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: comment on exported const ANIMATIONLOOPMODE_RELATIVE should be of the form "ANIMATIONLOOPMODE_RELATIVE ..." (golint)
    • Line 24: warning: exported type IAnimatable should have comment or be unexported (golint)
    • Line 29: warning: exported type IAnimation should have comment or be unexported (golint)
    • Line 34: warning: exported type IAnimationTarget should have comment or be unexported (golint)
    • Line 39: warning: exported type Animatable should have comment or be unexported (golint)
    • Line 51: warning: exported function NewAnimatable should have comment or be unexported (golint)
    • Line 60: warning: exported method Animatable.Init should have comment or be unexported (golint)
    • Line 60: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 72: warning: comment on exported method Animatable.GetTarget should be of the form "GetTarget ..." (golint)
    • Line 79: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 83: warning: exported method Animatable.Animate should have comment or be unexported (golint)
    • Line 83: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 104: warning: exported type AnimationKeyFrame should have comment or be unexported (golint)
    • Line 109: warning: exported type Animation should have comment or be unexported (golint)
    • Line 137: warning: comment on exported function NewAnimation should be of the form "NewAnimation ..." (golint)
    • Line 144: warning: exported method Animation.GetAnimId should have comment or be unexported (golint)
    • Line 144: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 148: warning: exported method Animation.SetEasingFunction should have comment or be unexported (golint)
    • Line 148: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 152: warning: exported method Animation.SetOnPlayingListener should have comment or be unexported (golint)
    • Line 152: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 156: warning: exported method Animation.SetOnStopingListener should have comment or be unexported (golint)
    • Line 156: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 160: warning: exported method Animation.SetOnErrorListener should have comment or be unexported (golint)
    • Line 160: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 164: warning: exported method Animation.Init should have comment or be unexported (golint)
    • Line 164: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 187: warning: exported method Animation.SetKeys should have comment or be unexported (golint)
    • Line 187: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 193: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 193: warning: don't use underscores in Go names; method parameter offsetValue_Obj should be offsetValueObj (golint)
    • Line 193: warning: don't use underscores in Go names; method parameter highLimitValue_Obj should be highLimitValueObj (golint)
    • Line 200: warning: don't use underscores in Go names; var startValue_obj should be startValueObj (golint)
    • Line 201: warning: don't use underscores in Go names; var endValue_obj should be endValueObj (golint)
    • Line 312: warning: comment on exported method Animation.Animate should be of the form "Animate ..." (golint)
    • Line 318: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 372: warning: don't use underscores in Go names; var fromValue_obj should be fromValueObj (golint)
    • Line 373: warning: don't use underscores in Go names; var toValue_obj should be toValueObj (golint)
    • internal/anim/animapi.go
    • Line 7: warning: exported type ANIMSTATUS should have comment or be unexported (golint)
    • Line 10: warning: exported const AnimstatusPlaying should have comment (or a comment on this block) or be unexported (golint)
    • Line 14: warning: exported type ANIMVALTYPE should have comment or be unexported (golint)
    • Line 17: warning: exported const AnimValTypeInt should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type Anim should have comment or be unexported (golint)
    • Line 39: warning: exported function NewAnim should have comment or be unexported (golint)
    • Line 64: warning: exported method Anim.AddKeyFrame should have comment or be unexported (golint)
    • Line 74: warning: exported method Anim.Status should have comment or be unexported (golint)
    • Line 78: warning: exported method Anim.SetLoop should have comment or be unexported (golint)
    • Line 83: warning: exported method Anim.SetOnPlayingListener should have comment or be unexported (golint)
    • Line 88: warning: exported method Anim.SetOnStopingListener should have comment or be unexported (golint)
    • Line 93: warning: exported method Anim.Play should have comment or be unexported (golint)
    • Line 98: warning: exported method Anim.Stop should have comment or be unexported (golint)
    • Line 106: warning: comment on exported method Anim.Update should be of the form "Update ..." (golint)
    • fs/fs.go
    • Line 11: warning: exported type Dir should have comment or be unexported (golint)
    • Line 16: warning: exported function SplitSchema should have comment or be unexported (golint)
    • Line 28: warning: exported type OpenFunc should have comment or be unexported (golint)
    • Line 34: warning: exported function RegisterSchema should have comment or be unexported (golint)
    • Line 38: warning: exported function Open should have comment or be unexported (golint)
    • internal/tools/tool.go
    • Line 8: warning: exported function GetCurrentTimeMs should have comment or be unexported (golint)
    • Line 12: warning: exported function GetFloat should have comment or be unexported (golint)
    • Line 49: warning: exported function GetInt should have comment or be unexported (golint)
    • sprite.go
    • Line 22: warning: exported const Right should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported const Mouse should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported type Sprite should have comment or be unexported (golint)
    • Line 72: warning: exported method Sprite.SetDying should have comment or be unexported (golint)
    • Line 76: warning: exported method Sprite.Stopped should have comment or be unexported (golint)
    • Line 80: warning: exported method Sprite.Parent should have comment or be unexported (golint)
    • Line 138: warning: exported method Sprite.InitFrom should have comment or be unexported (golint)
    • Line 218: warning: exported function Gopt_Sprite_Clone__0 should have comment or be unexported (golint)
    • Line 218: warning: don't use underscores in Go names; func Gopt_Sprite_Clone__0 should be GoptSpriteClone0 (golint)
    • Line 222: warning: exported function Gopt_Sprite_Clone__1 should have comment or be unexported (golint)
    • Line 222: warning: don't use underscores in Go names; func Gopt_Sprite_Clone__1 should be GoptSpriteClone1 (golint)
    • Line 237: warning: exported method Sprite.OnCloned__0 should have comment or be unexported (golint)
    • Line 237: warning: don't use underscores in Go names; method OnCloned__0 should be OnCloned0 (golint)
    • Line 249: warning: exported method Sprite.OnCloned__1 should have comment or be unexported (golint)
    • Line 249: warning: don't use underscores in Go names; method OnCloned__1 should be OnCloned1 (golint)
    • Line 255: warning: exported type MovingInfo should have comment or be unexported (golint)
    • Line 262: warning: exported method MovingInfo.StopMoving should have comment or be unexported (golint)
    • Line 266: warning: exported method MovingInfo.Dx should have comment or be unexported (golint)
    • Line 270: warning: exported method MovingInfo.Dy should have comment or be unexported (golint)
    • Line 274: warning: exported method Sprite.OnMoving__0 should have comment or be unexported (golint)
    • Line 274: warning: don't use underscores in Go names; method OnMoving__0 should be OnMoving0 (golint)
    • Line 286: warning: exported method Sprite.OnMoving__1 should have comment or be unexported (golint)
    • Line 286: warning: don't use underscores in Go names; method OnMoving__1 should be OnMoving1 (golint)
    • Line 292: warning: exported type TurningInfo should have comment or be unexported (golint)
    • Line 298: warning: exported method TurningInfo.Dir should have comment or be unexported (golint)
    • Line 302: warning: exported method Sprite.OnTurning__0 should have comment or be unexported (golint)
    • Line 302: warning: don't use underscores in Go names; method OnTurning__0 should be OnTurning0 (golint)
    • Line 314: warning: exported method Sprite.OnTurning__1 should have comment or be unexported (golint)
    • Line 314: warning: don't use underscores in Go names; method OnTurning__1 should be OnTurning1 (golint)
    • Line 320: warning: exported method Sprite.Die should have comment or be unexported (golint)
    • Line 335: warning: exported method Sprite.Destroy should have comment or be unexported (golint)
    • Line 354: warning: exported method Sprite.Hide should have comment or be unexported (golint)
    • Line 362: warning: exported method Sprite.Show should have comment or be unexported (golint)
    • Line 369: warning: exported method Sprite.Visible should have comment or be unexported (golint)
    • Line 373: warning: exported method Sprite.Cloned should have comment or be unexported (golint)
    • Line 379: warning: exported method Sprite.CostumeName should have comment or be unexported (golint)
    • Line 383: warning: exported method Sprite.CostumeIndex should have comment or be unexported (golint)
    • Line 387: warning: exported method Sprite.SetCostume should have comment or be unexported (golint)
    • Line 394: warning: exported method Sprite.NextCostume should have comment or be unexported (golint)
    • Line 401: warning: exported method Sprite.PrevCostume should have comment or be unexported (golint)
    • Line 473: warning: don't use underscores in Go names; var pre_x should be preX (golint)
    • Line 474: warning: don't use underscores in Go names; var pre_y should be preY (golint)
    • Line 476: warning: don't use underscores in Go names; var pre_direction should be preDirection (golint)
    • Line 517: warning: exported method Sprite.Animate__0 should have comment or be unexported (golint)
    • Line 517: warning: don't use underscores in Go names; method Animate__0 should be Animate0 (golint)
    • Line 531: warning: exported method Sprite.Say should have comment or be unexported (golint)
    • Line 541: warning: exported method Sprite.Think should have comment or be unexported (golint)
    • Line 623: warning: exported method Sprite.Move__0 should have comment or be unexported (golint)
    • Line 623: warning: don't use underscores in Go names; method Move__0 should be Move0 (golint)
    • Line 630: warning: exported method Sprite.Move__1 should have comment or be unexported (golint)
    • Line 630: warning: don't use underscores in Go names; method Move__1 should be Move1 (golint)
    • Line 634: warning: exported method Sprite.Step__0 should have comment or be unexported (golint)
    • Line 634: warning: don't use underscores in Go names; method Step__0 should be Step0 (golint)
    • Line 651: warning: exported method Sprite.Step__1 should have comment or be unexported (golint)
    • Line 651: warning: don't use underscores in Go names; method Step__1 should be Step1 (golint)
    • Line 672: warning: exported method Sprite.Glide should have comment or be unexported (golint)
    • Line 694: warning: exported method Sprite.SetXYpos should have comment or be unexported (golint)
    • Line 698: warning: exported method Sprite.ChangeXYpos should have comment or be unexported (golint)
    • Line 702: warning: exported method Sprite.Xpos should have comment or be unexported (golint)
    • Line 706: warning: exported method Sprite.SetXpos should have comment or be unexported (golint)
    • Line 710: warning: exported method Sprite.ChangeXpos should have comment or be unexported (golint)
    • Line 714: warning: exported method Sprite.Ypos should have comment or be unexported (golint)
    • Line 718: warning: exported method Sprite.SetYpos should have comment or be unexported (golint)
    • Line 722: warning: exported method Sprite.ChangeYpos should have comment or be unexported (golint)
    • Line 728: warning: exported type RotationStyle should have comment or be unexported (golint)
    • Line 731: warning: exported const None should have comment (or a comment on this block) or be unexported (golint)
    • Line 746: warning: exported method Sprite.SetRotationStyle should have comment or be unexported (golint)
    • Line 753: warning: exported method Sprite.Heading should have comment or be unexported (golint)
    • Line 866: warning: exported method Sprite.Size should have comment or be unexported (golint)
    • Line 871: warning: exported method Sprite.SetSize should have comment or be unexported (golint)
    • Line 878: warning: exported method Sprite.ChangeSize should have comment or be unexported (golint)
    • Line 887: warning: exported type Color should have comment or be unexported (golint)
    • Line 889: warning: exported method Sprite.TouchingColor should have comment or be unexported (golint)
    • Line 953: warning: exported method Sprite.BounceOffEdge should have comment or be unexported (golint)
    • Line 1029: warning: exported method Sprite.GoBackLayers should have comment or be unexported (golint)
    • Line 1033: warning: exported method Sprite.GotoFront should have comment or be unexported (golint)
    • Line 1039: warning: exported method Sprite.Stamp should have comment or be unexported (golint)
    • Line 1043: warning: exported method Sprite.PenUp should have comment or be unexported (golint)
    • Line 1047: warning: exported method Sprite.PenDown should have comment or be unexported (golint)
    • Line 1051: warning: exported method Sprite.SetPenColor should have comment or be unexported (golint)
    • Line 1058: warning: exported method Sprite.ChangePenColor should have comment or be unexported (golint)
    • Line 1062: warning: exported method Sprite.SetPenShade should have comment or be unexported (golint)
    • Line 1066: warning: exported method Sprite.ChangePenShade should have comment or be unexported (golint)
    • Line 1070: warning: exported method Sprite.SetPenHue should have comment or be unexported (golint)
    • Line 1074: warning: exported method Sprite.ChangePenHue should have comment or be unexported (golint)
    • Line 1116: warning: exported method Sprite.SetPenSize should have comment or be unexported (golint)
    • Line 1120: warning: exported method Sprite.ChangePenSize should have comment or be unexported (golint)
    • Line 1133: warning: exported method Sprite.HideVar should have comment or be unexported (golint)
    • Line 1137: warning: exported method Sprite.ShowVar should have comment or be unexported (golint)
    • internal/math32/math.go
    • Line 9: warning: exported function ApplyGeoForPoint should have comment or be unexported (golint)
    • Line 14: warning: exported function ApplyGeoForRect should have comment or be unexported (golint)
    • game.go
    • Line 24: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 29: warning: exported const GopPackage should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: don't use underscores in Go names; const Gop_sched should be GopSched (golint)
    • Line 34: warning: exported const DbgFlagLoad should have comment (or a comment on this block) or be unexported (golint)
    • Line 46: warning: exported function SetDebug should have comment or be unexported (golint)
    • Line 54: warning: exported type Game should have comment or be unexported (golint)
    • Line 69: warning: don't use underscores in Go names; struct field width_ should be width (golint)
    • Line 70: warning: don't use underscores in Go names; struct field height_ should be height (golint)
    • Line 80: warning: exported type Spriter should have comment or be unexported (golint)
    • Line 82: warning: exported type Gamer should have comment or be unexported (golint)
    • Line 86: warning: exported method Game.Stopped should have comment or be unexported (golint)
    • Line 109: warning: don't use underscores in Go names; func Gopt_Game_Main should be GoptGameMain (golint)
    • Line 116: warning: don't use underscores in Go names; func Gopt_Game_Run should be GoptGameRun (golint)
    • Line 453: warning: exported function Gopt_Game_Reload should have comment or be unexported (golint)
    • Line 453: warning: don't use underscores in Go names; func Gopt_Game_Reload should be GoptGameReload (golint)
    • Line 575: warning: exported type Config should have comment or be unexported (golint)
    • Line 606: warning: exported method Game.Layout should have comment or be unexported (golint)
    • Line 610: warning: exported method Game.Update should have comment or be unexported (golint)
    • Line 636: warning: exported method Game.Draw should have comment or be unexported (golint)
    • Line 736: warning: exported function SchedNow should have comment or be unexported (golint)
    • Line 743: warning: exported function Sched should have comment or be unexported (golint)
    • Line 765: warning: don't use underscores in Go names; method size_ should be size (golint)
    • Line 837: warning: exported method Game.Clear should have comment or be unexported (golint)
    • Line 1033: warning: exported method Game.SceneName should have comment or be unexported (golint)
    • Line 1037: warning: exported method Game.SceneIndex should have comment or be unexported (golint)
    • Line 1053: warning: exported method Game.NextScene should have comment or be unexported (golint)
    • Line 1059: warning: exported method Game.KeyPressed should have comment or be unexported (golint)
    • Line 1063: warning: exported method Game.MouseX should have comment or be unexported (golint)
    • Line 1067: warning: exported method Game.MouseY should have comment or be unexported (golint)
    • Line 1071: warning: exported method Game.MousePressed should have comment or be unexported (golint)
    • Line 1087: warning: exported method Game.Username should have comment or be unexported (golint)
    • Line 1093: warning: exported method Game.Wait should have comment or be unexported (golint)
    • Line 1097: warning: exported method Game.Timer should have comment or be unexported (golint)
    • Line 1101: warning: exported method Game.ResetTimer should have comment or be unexported (golint)
    • Line 1107: warning: exported method Game.Ask should have comment or be unexported (golint)
    • Line 1111: warning: exported method Game.Answer should have comment or be unexported (golint)
    • Line 1117: warning: exported type EffectKind should have comment or be unexported (golint)
    • Line 1119: warning: exported method Game.SetEffect should have comment or be unexported (golint)
    • Line 1123: warning: exported method Game.ChangeEffect should have comment or be unexported (golint)
    • Line 1127: warning: exported method Game.ClearEffects should have comment or be unexported (golint)
    • Line 1139: warning: exported type Sound should have comment or be unexported (golint)
    • Line 1154: warning: comment on exported method Game.Play__0 should be of the form "Play__0 ..." (golint)
    • Line 1157: warning: don't use underscores in Go names; method Play__0 should be Play0 (golint)
    • Line 1171: warning: exported method Game.StopAllSounds should have comment or be unexported (golint)
    • Line 1175: warning: exported method Game.Volume should have comment or be unexported (golint)
    • Line 1179: warning: exported method Game.SetVolume should have comment or be unexported (golint)
    • Line 1183: warning: exported method Game.ChangeVolume should have comment or be unexported (golint)
    • Line 1205: warning: exported method Game.Broadcast__0 should have comment or be unexported (golint)
    • Line 1205: warning: don't use underscores in Go names; method Broadcast__0 should be Broadcast0 (golint)
    • Line 1209: warning: exported method Game.Broadcast__1 should have comment or be unexported (golint)
    • Line 1209: warning: don't use underscores in Go names; method Broadcast__1 should be Broadcast1 (golint)
    • Line 1213: warning: exported method Game.Broadcast__2 should have comment or be unexported (golint)
    • Line 1213: warning: don't use underscores in Go names; method Broadcast__2 should be Broadcast2 (golint)
    • Line 1228: warning: exported method Game.HideVar should have comment or be unexported (golint)
    • Line 1232: warning: exported method Game.ShowVar should have comment or be unexported (golint)
    • list.go
    • Line 12: warning: exported const Invalid should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported type Value should have comment or be unexported (golint)
    • Line 42: warning: exported method Value.Equal should have comment or be unexported (golint)
    • Line 50: warning: exported method Value.Int should have comment or be unexported (golint)
    • Line 62: warning: exported method Value.Float should have comment or be unexported (golint)
    • Line 76: warning: exported type List should have comment or be unexported (golint)
    • Line 80: warning: exported method List.Init should have comment or be unexported (golint)
    • Line 84: warning: exported method List.InitFrom should have comment or be unexported (golint)
    • Line 105: warning: exported method List.Len should have comment or be unexported (golint)
    • Line 122: warning: exported method List.Contains should have comment or be unexported (golint)
    • Line 132: warning: exported method List.Append should have comment or be unexported (golint)
    • Line 136: warning: exported method List.Set should have comment or be unexported (golint)
    • Line 150: warning: exported method List.Insert should have comment or be unexported (golint)
    • Line 166: warning: exported method List.Delete should have comment or be unexported (golint)
    • Line 180: warning: exported method List.At should have comment or be unexported (golint)
    • spgdi.go
    • Line 29: warning: exported type Shape should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell95%

Misspell Finds commonly misspelled English words

    • sprite.go
    • Line 320: warning: "destoryed" is a misspelling of "destroyed" (misspell)
    • game.go
    • Line 627: warning: "runing" is a misspelling of "running" (misspell)
    • Line 628: warning: "runing" is a misspelling of "running" (misspell)