Preparing report...

Report for github.com/mikemenaker/go-zelda

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


gocyclo87%

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.


golint12%

Golint is a linter for Go source code.

    • go-zelda/elements/world.go
    • Line 13: warning: exported type World should have comment or be unexported (golint)
    • Line 22: warning: exported const CURRENT should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported function CreateWorld should have comment or be unexported (golint)
    • Line 40: warning: exported method World.UpdateAndDraw should have comment or be unexported (golint)
    • go-zelda/utils/uils.go
    • Line 13: warning: exported function GetBounds should have comment or be unexported (golint)
    • Line 17: warning: exported function Overlap should have comment or be unexported (golint)
    • Line 22: warning: exported function LoadPicture should have comment or be unexported (golint)
    • Line 35: warning: exported function LoadAnimationSheet should have comment or be unexported (golint)
    • go-zelda/elements/door.go
    • Line 9: warning: exported type Door should have comment or be unexported (golint)
    • Line 14: warning: exported function NewDoor should have comment or be unexported (golint)
    • Line 32: warning: exported method Door.Door should have comment or be unexported (golint)
    • go-zelda/elements/enemy.go
    • Line 11: warning: exported type Enemy should have comment or be unexported (golint)
    • Line 18: warning: don't use underscores in Go names; struct field dying_sheet should be dyingSheet (golint)
    • Line 19: warning: don't use underscores in Go names; struct field dying_anims should be dyingAnims (golint)
    • Line 30: warning: exported const DOWN should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported function NewEnemy should have comment or be unexported (golint)
    • Line 45: warning: don't use underscores in Go names; var dying_sheet should be dyingSheet (golint)
    • Line 45: warning: don't use underscores in Go names; var dying_anims should be dyingAnims (golint)
    • go-zelda/elements/intro.go
    • Line 9: warning: exported type Intro should have comment or be unexported (golint)
    • Line 15: warning: exported function NewIntro should have comment or be unexported (golint)
    • Line 34: warning: exported method Intro.Draw should have comment or be unexported (golint)
    • Line 39: warning: exported method Intro.Update should have comment or be unexported (golint)
    • go-zelda/elements/link.go
    • Line 4: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 11: warning: exported type Link should have comment or be unexported (golint)
    • Line 21: warning: exported function NewLink should have comment or be unexported (golint)
    • Line 41: warning: exported const WALK_LEFT should have comment (or a comment on this block) or be unexported (golint)
    • Line 105: warning: exported method Link.Update should have comment or be unexported (golint)
    • Line 239: warning: exported method Link.Draw should have comment or be unexported (golint)
    • go-zelda/elements/object.go
    • Line 9: warning: exported type Object should have comment or be unexported (golint)
    • Line 17: warning: exported function NewObject should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign62%

IneffAssign detects ineffectual assignments in Go code.

    • go-zelda/elements/door.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/faiface/pixel (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/faiface/pixel/pixelgl (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import go-zelda/utils (invalid package name: "") (ineffassign)
    • go-zelda/main.go
    • Line 4: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 4: warning: could not import github.com/faiface/pixel (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import github.com/faiface/pixel/pixelgl (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import go-zelda/elements (invalid package name: "") (ineffassign)
    • go-zelda/utils/uils.go
    • Line 5: warning: cannot find package "." in: (ineffassign)
    • Line 5: warning: could not import github.com/faiface/pixel (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!