Preparing report...

Report for github.com/kplat1/ssd

A    Great!    Found 7 issues across 7 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!


gocyclo57%

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.

    • ssd/data.go
    • Line 440: warning: cyclomatic complexity 20 of function addKeyItems() is high (> 15) (gocyclo)
    • ssd/main.go
    • Line 247: warning: cyclomatic complexity 25 of function initMainTabs() is high (> 15) (gocyclo)
    • ssd/world.go
    • Line 145: warning: cyclomatic complexity 20 of function (*Borders).simulateMap() is high (> 15) (gocyclo)

golint0%

Golint is a linter for Go source code.

    • ssd/world_data.go
    • Line 7: warning: exported type DataSVG should have comment or be unexported (golint)
    • Line 11: warning: exported type WorldSVG should have comment or be unexported (golint)
    • Line 13: warning: exported var FirstSVG should have comment or be unexported (golint)
    • ssd/data.go
    • Line 22: warning: exported var WEAPON should have comment or be unexported (golint)
    • Line 25: warning: exported var CURBATTLE should have comment or be unexported (golint)
    • Line 27: warning: exported var POINTS should have comment or be unexported (golint)
    • Line 29: warning: exported function InitDatabase should have comment or be unexported (golint)
    • Line 48: warning: exported function InitDataMaps should have comment or be unexported (golint)
    • Line 140: warning: comment on exported method Game.GetFireEvents should be of the form "GetFireEvents ..." (golint)
    • Line 552: warning: comment on exported method Game.GetPosFromServer should be of the form "GetPosFromServer ..." (golint)
    • ssd/game.go
    • Line 31: warning: exported const BulletTimeMsec should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported type Weapon should have comment or be unexported (golint)
    • Line 41: warning: exported type FireEventInfo should have comment or be unexported (golint)
    • Line 50: warning: exported type Game should have comment or be unexported (golint)
    • Line 78: warning: exported type CameraState should have comment or be unexported (golint)
    • Line 86: warning: exported var HEALTH should have comment or be unexported (golint)
    • Line 87: warning: exported type Weapons should have comment or be unexported (golint)
    • Line 89: warning: exported var TheWeapons should have comment or be unexported (golint)
    • Line 94: warning: exported type Scene should have comment or be unexported (golint)
    • Line 101: warning: exported type Settings should have comment or be unexported (golint)
    • Line 105: warning: exported var TheSettings should have comment or be unexported (golint)
    • Line 107: warning: don't use underscores in Go names; var KiT_Scene should be KiTScene (golint)
    • Line 107: warning: exported var KiT_Scene should have comment or be unexported (golint)
    • Line 109: warning: exported method Game.BuildMap should have comment or be unexported (golint)
    • Line 125: warning: exported method Game.AddMoveEvent should have comment or be unexported (golint)
    • Line 131: warning: exported method Game.AddEvent should have comment or be unexported (golint)
    • Line 138: warning: exported method Game.EventLoop should have comment or be unexported (golint)
    • Line 159: warning: exported method Game.MakeObj should have comment or be unexported (golint)
    • Line 302: warning: comment on exported method Game.MakeLibrary should be of the form "MakeLibrary ..." (golint)
    • Line 316: warning: exported method Game.MakeMeshes should have comment or be unexported (golint)
    • Line 349: warning: exported method Game.GetRandomSpawnPoint should have comment or be unexported (golint)
    • Line 376: warning: exported method Game.Config should have comment or be unexported (golint)
    • Line 656: warning: exported function AddNewScene should have comment or be unexported (golint)
    • Line 662: warning: exported method Scene.Render2D should have comment or be unexported (golint)
    • Line 677: warning: exported method Scene.NavEvents should have comment or be unexported (golint)
    • Line 762: warning: exported method Scene.NavKeyEvents should have comment or be unexported (golint)
    • Line 896: warning: exported method Game.WorldStep should have comment or be unexported (golint)
    • Line 896: warning: receiver name ev should be consistent with previous receiver name gm for Game (golint)
    • ssd/main.go
    • Line 28: warning: exported type UserInfo should have comment or be unexported (golint)
    • Line 35: warning: exported type BorderInfo should have comment or be unexported (golint)
    • Line 44: warning: comment on exported var ThisUserInfo should be of the form "ThisUserInfo ..." (golint)
    • Line 46: warning: exported var AllUserInfo should have comment or be unexported (golint)
    • Line 47: warning: exported var AllBorders should have comment or be unexported (golint)
    • Line 92: warning: exported type UserPass should have comment or be unexported (golint)
    • ssd/map.go
    • Line 9: warning: exported type MapObj should have comment or be unexported (golint)
    • Line 16: warning: exported type Map should have comment or be unexported (golint)
    • Line 18: warning: exported var DefScale should have comment or be unexported (golint)
    • Line 19: warning: exported var FirstMap should have comment or be unexported (golint)
    • Line 30: warning: exported var SecondMap should have comment or be unexported (golint)
    • Line 34: warning: exported var TheArenaMap should have comment or be unexported (golint)
    • Line 40: warning: exported type MapInfo should have comment or be unexported (golint)
    • Line 45: warning: exported type Maps should have comment or be unexported (golint)
    • Line 47: warning: exported var AllMaps should have comment or be unexported (golint)
    • ssd/objects.go
    • Line 17: warning: comment on exported method Game.PhysMakePerson should be of the form "PhysMakePerson ..." (golint)
    • Line 37: warning: exported method Game.PhysMakeGrass should have comment or be unexported (golint)
    • Line 46: warning: exported method Game.PhysMakeLava should have comment or be unexported (golint)
    • Line 67: warning: exported method Game.PhysMakeBrickHouse should have comment or be unexported (golint)
    • Line 159: warning: exported method Game.PhysMakeRoad should have comment or be unexported (golint)
    • Line 166: warning: exported method Game.PhysMakeTheWall should have comment or be unexported (golint)
    • Line 188: warning: exported method Game.PhysMakeArenaWalls should have comment or be unexported (golint)
    • Line 210: warning: exported method Game.LibMakeItemSpawner should have comment or be unexported (golint)
    • Line 221: warning: exported method Game.LibMakePerson should have comment or be unexported (golint)
    • Line 230: warning: exported method Game.LibMakeGrass should have comment or be unexported (golint)
    • Line 242: warning: exported method Game.LibMakeRoad should have comment or be unexported (golint)
    • Line 252: warning: exported method Game.LibMakePerson1 should have comment or be unexported (golint)
    • Line 261: warning: exported method Game.LibMakeBrickDoorWall should have comment or be unexported (golint)
    • Line 289: warning: exported method Game.LibMakeIntDoorWall should have comment or be unexported (golint)
    • Line 314: warning: exported method Game.LibMakeTheWall should have comment or be unexported (golint)
    • Line 341: warning: exported method Game.LibMakeArenaWalls should have comment or be unexported (golint)
    • Line 351: warning: exported method Game.LibMakeBrickHouse should have comment or be unexported (golint)
    • Line 412: warning: exported method Game.LibMakeLava should have comment or be unexported (golint)
    • Line 422: warning: exported method Game.LibMakeLavaContainer should have comment or be unexported (golint)
    • ssd/world.go
    • Line 14: warning: exported type Territory should have comment or be unexported (golint)
    • Line 20: warning: exported type Border should have comment or be unexported (golint)
    • Line 26: warning: exported type World should have comment or be unexported (golint)
    • Line 27: warning: exported type Borders should have comment or be unexported (golint)
    • Line 32: warning: exported var TeamStrength should have comment or be unexported (golint)
    • Line 45: warning: exported var FirstWorld should have comment or be unexported (golint)
    • Line 66: warning: exported var TheWorldMap should have comment or be unexported (golint)
    • Line 87: warning: exported var FirstWorldBorders should have comment or be unexported (golint)
    • Line 113: warning: exported function InitStrength should have comment or be unexported (golint)
    • Line 123: warning: exported method World.RenderSVGs should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell85%

Misspell Finds commonly misspelled English words