Preparing report...

Report for github.com/Cyberselves/engine

(v0.0.0-20240419193834-0c2d284c5f76)

A+    Excellent!    Found 49 issues across 219 files

Tweet

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!


gofmt84%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

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.

    • loader/gltf/loader.go
    • Line 432: warning: cyclomatic complexity 19 of function (*GLTF).LoadMesh() is high (> 15) (gocyclo)
    • Line 179: warning: cyclomatic complexity 18 of function (*GLTF).LoadNode() is high (> 15) (gocyclo)
    • gui/hboxlayout.go
    • Line 86: warning: cyclomatic complexity 41 of function (*HBoxLayout).Recalc() is high (> 15) (gocyclo)
    • gui/panel.go
    • Line 671: warning: cyclomatic complexity 17 of function (*Panel).updateBounds() is high (> 15) (gocyclo)
    • gui/menu.go
    • Line 216: warning: cyclomatic complexity 25 of function (*Menu).onKey() is high (> 15) (gocyclo)
    • gui/builder.go
    • Line 302: warning: cyclomatic complexity 19 of function (*Builder).ParseString() is high (> 15) (gocyclo)
    • Line 518: warning: cyclomatic complexity 16 of function (*Builder).SetAttribs() is high (> 15) (gocyclo)
    • loader/collada/geometry.go
    • Line 112: warning: cyclomatic complexity 26 of function newMeshPolylist() is high (> 15) (gocyclo)
    • Line 310: warning: cyclomatic complexity 20 of function newMeshTriangles() is high (> 15) (gocyclo)
    • gui/builder_panel.go
    • Line 631: warning: cyclomatic complexity 21 of function buildChart() is high (> 15) (gocyclo)
    • Line 738: warning: cyclomatic complexity 16 of function buildTable() is high (> 15) (gocyclo)
    • Line 362: warning: cyclomatic complexity 16 of function buildMenu() is high (> 15) (gocyclo)
    • gui/table.go
    • Line 1177: warning: cyclomatic complexity 20 of function (*Table).recalcHeader() is high (> 15) (gocyclo)
    • Line 871: warning: cyclomatic complexity 16 of function (*Table).onKey() is high (> 15) (gocyclo)
    • gui/edit.go
    • Line 420: warning: cyclomatic complexity 18 of function (*Edit).onKey() is high (> 15) (gocyclo)
    • gui/window.go
    • Line 159: warning: cyclomatic complexity 37 of function (*Window).onCursor() is high (> 15) (gocyclo)
    • gui/scroller.go
    • Line 346: warning: cyclomatic complexity 24 of function (*Scroller).updateScrollbarsVisibility() is high (> 15) (gocyclo)
    • Line 417: warning: cyclomatic complexity 16 of function (*Scroller).recalc() is high (> 15) (gocyclo)
    • gui/manager.go
    • Line 176: warning: cyclomatic complexity 21 of function (*manager).onCursor() is high (> 15) (gocyclo)
    • math32/ray.go
    • Line 347: warning: cyclomatic complexity 18 of function (*Ray).IntersectBox() is high (> 15) (gocyclo)
    • gui/vboxlayout.go
    • Line 86: warning: cyclomatic complexity 47 of function (*VBoxLayout).Recalc() is high (> 15) (gocyclo)
    • geometry/box.go
    • Line 28: warning: cyclomatic complexity 21 of function NewSegmentedBox() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell99%

Misspell Finds commonly misspelled English words