Preparing report...

Report for github.com/GomeBox/gome

A+    Excellent!    Found 76 issues across 148 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!


gocyclo100%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

No problems detected. Good job!


golint49%

Golint is a linter for Go source code.

    • gome/internal/mocks/systemsFactory.go
    • Line 9: warning: exported type SystemsFactory should have comment or be unexported (golint)
    • Line 16: warning: exported method SystemsFactory.CreateAudioSystem should have comment or be unexported (golint)
    • Line 21: warning: exported method SystemsFactory.CreateGraphicsSystem should have comment or be unexported (golint)
    • Line 29: warning: exported method SystemsFactory.CreateInputSystem should have comment or be unexported (golint)
    • gome/internal/graphics/system_test.go
    • Line 30: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 68: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 112: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • gome/content/content.go
    • Line 5: warning: exported type Content should have comment or be unexported (golint)
    • Line 10: warning: exported function New should have comment or be unexported (golint)
    • gome/internal/game/loop.go
    • Line 3: warning: exported type LoopData should have comment or be unexported (golint)
    • Line 9: warning: exported type Loop should have comment or be unexported (golint)
    • gome/adapters/graphics/mocks/texture.go
    • Line 8: warning: exported type Texture should have comment or be unexported (golint)
    • Line 14: warning: exported method Texture.Draw should have comment or be unexported (golint)
    • Line 21: warning: exported method Texture.Dimensions should have comment or be unexported (golint)
    • gome/interfaces/mocks/player.go
    • Line 3: warning: exported type Player should have comment or be unexported (golint)
    • Line 6: warning: exported method Player.Unload should have comment or be unexported (golint)
    • Line 10: warning: exported method Player.Play should have comment or be unexported (golint)
    • Line 14: warning: exported method Player.Unloaded should have comment or be unexported (golint)
    • gome/internal/sprite/mocks/drawer.go
    • Line 5: warning: exported type Drawer should have comment or be unexported (golint)
    • Line 10: warning: exported method Drawer.DrawTo should have comment or be unexported (golint)
    • Line 17: warning: exported method Drawer.Dimensions should have comment or be unexported (golint)
    • gome/internal/game/mocks/input.go
    • Line 5: warning: exported type Input should have comment or be unexported (golint)
    • Line 10: warning: exported method Input.Update should have comment or be unexported (golint)
    • Line 18: warning: exported method Input.Keyboard should have comment or be unexported (golint)
    • gome/internal/graphics/mocks/text.go
    • Line 5: warning: exported type Text should have comment or be unexported (golint)
    • Line 10: warning: exported method Text.Draw should have comment or be unexported (golint)
    • Line 17: warning: exported method Text.Dimensions should have comment or be unexported (golint)
    • gome/internal/systemsFactory.go
    • Line 13: warning: exported type SystemsFactory should have comment or be unexported (golint)
    • Line 19: warning: exported function NewSystemsFactory should have comment or be unexported (golint)
    • gome/primitives/rectangleF.go
    • Line 3: warning: comment on exported type RectangleF should be of the form "RectangleF ..." (with optional leading article) (golint)
    • Line 9: warning: exported function NewRectangleF should have comment or be unexported (golint)
    • gome/adapters/graphics/mocks/screenPresenter.go
    • Line 3: warning: exported type ScreenPresenter should have comment or be unexported (golint)
    • Line 9: warning: exported method ScreenPresenter.Present should have comment or be unexported (golint)
    • Line 17: warning: exported method ScreenPresenter.Clear should have comment or be unexported (golint)
    • gome/adapters/audio/mocks/sound.go
    • Line 3: warning: exported type Sound should have comment or be unexported (golint)
    • Line 8: warning: exported method Sound.Play should have comment or be unexported (golint)
    • Line 15: warning: exported method Sound.Unload should have comment or be unexported (golint)
    • gome/adapters/graphics/mocks/adapters.go
    • Line 5: warning: exported type Adapters should have comment or be unexported (golint)
    • Line 18: warning: exported method Adapters.TextureLoader should have comment or be unexported (golint)
    • Line 26: warning: exported method Adapters.TextureCreator should have comment or be unexported (golint)
    • Line 34: warning: exported method Adapters.FontLoader should have comment or be unexported (golint)
    • Line 42: warning: exported method Adapters.WindowAdapter should have comment or be unexported (golint)
    • Line 50: warning: exported method Adapters.ScreenPresenter should have comment or be unexported (golint)
    • gome/interfaces/mocks/texture.go
    • Line 5: warning: exported type Texture should have comment or be unexported (golint)
    • Line 8: warning: exported method Texture.Unload should have comment or be unexported (golint)
    • Line 12: warning: exported method Texture.Unloaded should have comment or be unexported (golint)
    • Line 16: warning: exported method Texture.Draw should have comment or be unexported (golint)
    • Line 20: warning: exported method Texture.Dimensions should have comment or be unexported (golint)
    • gome/internal/input/mocks/keyboard.go
    • Line 8: warning: exported type Keyboard should have comment or be unexported (golint)
    • Line 14: warning: exported method Keyboard.RegisterKey should have comment or be unexported (golint)
    • Line 21: warning: exported method Keyboard.UnregisterKey should have comment or be unexported (golint)
    • Line 27: warning: exported method Keyboard.Update should have comment or be unexported (golint)
    • gome/internal/game/runner.go
    • Line 7: warning: exported type Runner should have comment or be unexported (golint)
    • Line 17: warning: exported function NewRunner should have comment or be unexported (golint)
    • gome/internal/game/mocks/audio.go
    • Line 7: warning: exported type Audio should have comment or be unexported (golint)
    • Line 12: warning: exported method Audio.LoadSound should have comment or be unexported (golint)
    • Line 19: warning: exported method Audio.LoadSong should have comment or be unexported (golint)
    • gome/adapters/audio/mocks/adapters.go
    • Line 5: warning: exported type Adapters should have comment or be unexported (golint)
    • Line 11: warning: exported method Adapters.SoundLoader should have comment or be unexported (golint)
    • Line 19: warning: exported method Adapters.SongLoader should have comment or be unexported (golint)
    • gome/start.go
    • Line 10: warning: exported type CreateAdapters should have comment or be unexported (golint)
    • gome/adapters/graphics/mocks/textDrawer.go
    • Line 7: warning: exported type TextDrawer should have comment or be unexported (golint)
    • Line 12: warning: exported method TextDrawer.Draw should have comment or be unexported (golint)
    • Line 19: warning: exported method TextDrawer.DrawScaled should have comment or be unexported (golint)
    • Line 23: warning: exported method TextDrawer.Dimensions should have comment or be unexported (golint)
    • gome/internal/graphics/mocks/texture.go
    • Line 5: warning: exported type Texture should have comment or be unexported (golint)
    • Line 10: warning: exported method Texture.Unload should have comment or be unexported (golint)
    • Line 14: warning: exported method Texture.Unloaded should have comment or be unexported (golint)
    • Line 18: warning: exported method Texture.Draw should have comment or be unexported (golint)
    • Line 25: warning: exported method Texture.Dimensions should have comment or be unexported (golint)
    • gome/primitives/color.go
    • Line 24: warning: exported type DefinedColors should have comment or be unexported (golint)
    • Line 28: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • gome/internal/game/mocks/system.go
    • Line 8: warning: exported type System should have comment or be unexported (golint)
    • Line 18: warning: exported method System.Context should have comment or be unexported (golint)
    • Line 25: warning: exported method System.OpenGameWindow should have comment or be unexported (golint)
    • Line 32: warning: exported method System.Initialize should have comment or be unexported (golint)
    • Line 40: warning: exported method System.Update should have comment or be unexported (golint)
    • Line 48: warning: exported method System.Graphics should have comment or be unexported (golint)
    • gome/adapters/graphics/mocks/windowAdapter.go
    • Line 8: warning: exported type WindowAdapter should have comment or be unexported (golint)
    • Line 14: warning: exported method WindowAdapter.OpenWindow should have comment or be unexported (golint)
    • Line 21: warning: exported method WindowAdapter.IsOpen should have comment or be unexported (golint)
    • Line 28: warning: exported method WindowAdapter.Size should have comment or be unexported (golint)
    • gome/adapters/mocks/system.go
    • Line 9: warning: exported type System should have comment or be unexported (golint)
    • Line 19: warning: exported method System.Initialize should have comment or be unexported (golint)
    • Line 27: warning: exported method System.Update should have comment or be unexported (golint)
    • Line 35: warning: exported method System.Input should have comment or be unexported (golint)
    • Line 42: warning: exported method System.Graphics should have comment or be unexported (golint)
    • Line 49: warning: exported method System.Audio should have comment or be unexported (golint)
    • gome/internal/mocks/game.go
    • Line 5: warning: exported type Game should have comment or be unexported (golint)
    • Line 9: warning: exported method Game.Setup should have comment or be unexported (golint)
    • Line 13: warning: exported method Game.Initialize should have comment or be unexported (golint)
    • Line 17: warning: exported method Game.Update should have comment or be unexported (golint)
    • Line 24: warning: exported method Game.Draw should have comment or be unexported (golint)
    • gome/interfaces/mocks/font.go
    • Line 8: warning: exported type Font should have comment or be unexported (golint)
    • Line 11: warning: exported method Font.Unload should have comment or be unexported (golint)
    • Line 15: warning: exported method Font.Unloaded should have comment or be unexported (golint)
    • Line 19: warning: exported method Font.CreateText should have comment or be unexported (golint)
    • gome/internal/game/graphics/windowSettings.go
    • Line 8: warning: exported type WindowSettings should have comment or be unexported (golint)
    • Line 14: warning: exported method WindowSettings.SetFullscreen should have comment or be unexported (golint)
    • Line 19: warning: exported method WindowSettings.SetResolution should have comment or be unexported (golint)
    • Line 25: warning: exported method WindowSettings.SetTitle should have comment or be unexported (golint)
    • gome/internal/shared/unloader.go
    • Line 8: warning: exported type Unloader should have comment or be unexported (golint)
    • Line 13: warning: exported method Unloader.Unload should have comment or be unexported (golint)
    • Line 25: warning: exported method Unloader.Unloaded should have comment or be unexported (golint)
    • gome/internal/game/graphics/system_mock.go
    • Line 8: warning: exported type SystemMock should have comment or be unexported (golint)
    • Line 13: warning: exported method SystemMock.LoadTexture should have comment or be unexported (golint)
    • Line 17: warning: exported method SystemMock.LoadFont should have comment or be unexported (golint)
    • Line 21: warning: exported method SystemMock.CreateTexture should have comment or be unexported (golint)
    • Line 25: warning: exported method SystemMock.Window should have comment or be unexported (golint)
    • Line 29: warning: exported method SystemMock.OpenWindow should have comment or be unexported (golint)
    • Line 33: warning: exported method SystemMock.Clear should have comment or be unexported (golint)
    • Line 38: warning: exported method SystemMock.Present should have comment or be unexported (golint)
    • gome/internal/game/mocks/game.go
    • Line 5: warning: exported type Game should have comment or be unexported (golint)
    • Line 12: warning: exported method Game.Setup should have comment or be unexported (golint)
    • Line 18: warning: exported method Game.Initialize should have comment or be unexported (golint)
    • Line 25: warning: exported method Game.Update should have comment or be unexported (golint)
    • Line 32: warning: exported method Game.Draw should have comment or be unexported (golint)
    • gome/interfaces/mocks/unloader.go
    • Line 3: warning: exported type Unloader should have comment or be unexported (golint)
    • Line 8: warning: exported method Unloader.Unload should have comment or be unexported (golint)
    • Line 15: warning: exported method Unloader.Unloaded should have comment or be unexported (golint)
    • gome/internal/game/mocks/graphics.go
    • Line 9: warning: exported type Graphics should have comment or be unexported (golint)
    • Line 15: warning: exported method Graphics.OpenWindow should have comment or be unexported (golint)
    • Line 22: warning: exported method Graphics.Clear should have comment or be unexported (golint)
    • Line 26: warning: exported method Graphics.Present should have comment or be unexported (golint)
    • Line 30: warning: exported method Graphics.LoadTexture should have comment or be unexported (golint)
    • Line 37: warning: exported method Graphics.LoadFont should have comment or be unexported (golint)
    • Line 44: warning: exported method Graphics.CreateTexture should have comment or be unexported (golint)
    • Line 48: warning: exported method Graphics.Window should have comment or be unexported (golint)
    • gome/adapters/audio/mocks/song.go
    • Line 3: warning: exported type Song should have comment or be unexported (golint)
    • Line 8: warning: exported method Song.Play should have comment or be unexported (golint)
    • Line 15: warning: exported method Song.Unload 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!


misspell99%

Misspell Finds commonly misspelled English words