Preparing report...

Report for github.com/hajimehoshi/ebiten

(v1.12.12)

B    Not bad!    Found 206 issues across 330 files

Tweet

gofmt46%

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

    • doc.go
    • Line 1: warning: file is not gofmted with -s (gofmt)
    • run.go
    • Line 1: warning: file is not gofmted with -s (gofmt)

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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo86%

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.

    • examples/keyboard/keyboard/gen.go
    • Line 83: warning: cyclomatic complexity 29 of function keyDisplayNameToKey() is high (> 15) (gocyclo)
    • Line 194: warning: cyclomatic complexity 18 of function outputKeyboardImage() is high (> 15) (gocyclo)
    • internal/shaderir/metal/metal.go
    • Line 328: warning: cyclomatic complexity 51 of function (*compileContext).metalBlock() is high (> 15) (gocyclo)
    • Line 57: warning: cyclomatic complexity 23 of function Compile() is high (> 15) (gocyclo)
    • internal/mipmap/mipmap.go
    • Line 288: warning: cyclomatic complexity 24 of function mipmapLevelFromDistance() is high (> 15) (gocyclo)
    • Line 100: warning: cyclomatic complexity 20 of function (*Mipmap).DrawTriangles() is high (> 15) (gocyclo)
    • image.go
    • Line 446: warning: cyclomatic complexity 17 of function (*Image).DrawTrianglesShader() is high (> 15) (gocyclo)
    • text/text.go
    • Line 89: warning: cyclomatic complexity 16 of function getGlyphImages() is high (> 15) (gocyclo)
    • shader_test.go
    • Line 805: warning: cyclomatic complexity 19 of function TestShaderSubImage() is high (> 15) (gocyclo)
    • examples/windowsize/main.go
    • Line 117: warning: cyclomatic complexity 47 of function (*game).Update() is high (> 15) (gocyclo)
    • Line 379: warning: cyclomatic complexity 16 of function main() is high (> 15) (gocyclo)
    • internal/shaderir/glsl/glsl.go
    • Line 335: warning: cyclomatic complexity 43 of function (*compileContext).glslBlock() is high (> 15) (gocyclo)
    • Line 54: warning: cyclomatic complexity 32 of function Compile() is high (> 15) (gocyclo)
    • internal/shader/shader.go
    • Line 585: warning: cyclomatic complexity 30 of function (*compileState).parseFunc() is high (> 15) (gocyclo)
    • Line 278: warning: cyclomatic complexity 26 of function (*compileState).parseDecl() is high (> 15) (gocyclo)
    • Line 411: warning: cyclomatic complexity 24 of function (*compileState).parseVariable() is high (> 15) (gocyclo)
    • Line 192: warning: cyclomatic complexity 19 of function (*compileState).parse() is high (> 15) (gocyclo)
    • Line 715: warning: cyclomatic complexity 16 of function (*compileState).parseBlock() is high (> 15) (gocyclo)
    • internal/shader/stmt.go
    • Line 36: warning: cyclomatic complexity 108 of function (*compileState).parseStmt() is high (> 15) (gocyclo)
    • Line 489: warning: cyclomatic complexity 36 of function (*compileState).assign() is high (> 15) (gocyclo)
    • keys.go
    • Line 346: warning: cyclomatic complexity 101 of function (Key).String() is high (> 15) (gocyclo)
    • Line 552: warning: cyclomatic complexity 101 of function keyNameToKeyCode() is high (> 15) (gocyclo)
    • Line 135: warning: cyclomatic complexity 101 of function (Key).isValid() is high (> 15) (gocyclo)
    • internal/graphicscommand/command.go
    • Line 318: warning: cyclomatic complexity 26 of function (*drawTrianglesCommand).String() is high (> 15) (gocyclo)
    • Line 202: warning: cyclomatic complexity 18 of function (*commandQueue).Flush() is high (> 15) (gocyclo)
    • image_test.go
    • Line 113: warning: cyclomatic complexity 21 of function TestImageComposition() is high (> 15) (gocyclo)
    • Line 562: warning: cyclomatic complexity 20 of function TestImageEdge() is high (> 15) (gocyclo)
    • Line 1484: warning: cyclomatic complexity 17 of function TestImageSetAndDraw() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!