Preparing report...

Report for github.com/felixangell/strife

A+    Excellent!    Found 12 issues across 17 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!


golint94%

Golint is a linter for Go source code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign29%

IneffAssign detects ineffectual assignments in Go code.

    • strife/image.go
    • Line 29: warning: RenderInstance.CreateTextureFromSurface undefined (type *Renderer has no field or method CreateTextureFromSurface) (ineffassign)
    • strife/renderer.go
    • Line 105: warning: r.SetDrawColor undefined (type *Renderer has no field or method SetDrawColor) (ineffassign)
    • Line 113: warning: r.DrawRect undefined (type *Renderer has no field or method DrawRect) (ineffassign)
    • Line 115: warning: r.FillRect undefined (type *Renderer has no field or method FillRect) (ineffassign)
    • Line 249: warning: r.Copy undefined (type *Renderer has no field or method Copy) (ineffassign)
    • Line 267: warning: r.Copy undefined (type *Renderer has no field or method Copy) (ineffassign)
    • strife/font.go
    • Line 73: warning: cannot use sdl.BLENDMODE_BLEND (constant unknown with invalid type) as sdl.BlendMode value in argument to texture.SetBlendMode (ineffassign)
    • strife/window.go
    • Line 36: warning: w.SetIcon undefined (type *RenderWindow has no field or method SetIcon) (ineffassign)
    • Line 51: warning: cannot convert evt.Keysym.Sym (variable of type sdl.Keycode) to int (ineffassign)
    • Line 167: warning: w.renderContext.Destroy undefined (type *Renderer has no field or method Destroy) (ineffassign)
    • Line 168: warning: w.Destroy undefined (type *RenderWindow has no field or method Destroy) (ineffassign)
    • strife/example/keypress/keypress.go
    • Line 13: warning: cannot use strife.KEY_W (constant unknown with invalid type) as int value in argument to strife.KeyPressed (ineffassign)
    • Line 40: warning: window.SetTitle undefined (type *strife.RenderWindow has no field or method SetTitle) (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!