Preparing report...

Report for github.com/gen2brain/raylib-go

A+    Excellent!    Found 22 issues across 118 files

Tweet

gofmt97%

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


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!


gocyclo88%

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.


golint90%

Golint is a linter for Go source code.

    • raylib-go/examples/games/arkanoid/main.go
    • Line 25: warning: exported const PLAYER_MAX_LIFE should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported type Player should have comment or be unexported (golint)
    • Line 36: warning: exported type Ball should have comment or be unexported (golint)
    • Line 43: warning: exported type Brick should have comment or be unexported (golint)
    • Line 53: warning: exported type Game should have comment or be unexported (golint)
    • raylib-go/raygui/raygui.go
    • Line 2: warning: package comment is detached; there should be no blank lines between it and the package statement (golint)
    • Line 9: warning: comment on exported type ControlState should be of the form "ControlState ..." (with optional leading article) (golint)
    • Line 13: warning: exported const Disabled should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: comment on exported function IsInAny should be of the form "IsInAny ..." (golint)
    • Line 49: warning: comment on exported function ConstrainRectangle should be of the form "ConstrainRectangle ..." (golint)
    • raylib-go/examples/shaders/mesh_instancing/light.go
    • Line 11: warning: exported type LightType should have comment or be unexported (golint)
    • Line 14: warning: exported const LightTypeDirectional should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type Light should have comment or be unexported (golint)
    • Line 38: warning: exported function NewLight should have comment or be unexported (golint)
    • Line 68: warning: comment on exported method Light.UpdateValues should be of the form "UpdateValues ..." (golint)
    • raylib-go/raygui/style.go
    • Line 1: warning: package comment should be of the form "Package raygui ..." (golint)
    • Line 416: warning: comment on exported function GetStyleColor should be of the form "GetStyleColor ..." (golint)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


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!