Preparing report...

Report for github.com/leapar/engine

(v0.0.0-20190522112937-c4385713e12c)

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


gofmt70%

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.

    • gui/panel.go
    • Line 756: warning: cyclomatic complexity 17 of function (*Panel).updateBounds() is high (> 15) (gocyclo)
    • gui/window.go
    • Line 154: warning: cyclomatic complexity 35 of function (*Window).onCursor() is high (> 15) (gocyclo)
    • loader/gltf/loader.go
    • Line 427: warning: cyclomatic complexity 18 of function (*GLTF).LoadMesh() is high (> 15) (gocyclo)
    • Line 179: warning: cyclomatic complexity 17 of function (*GLTF).LoadNode() is high (> 15) (gocyclo)
    • gui/scroller.go
    • Line 385: warning: cyclomatic complexity 24 of function (*Scroller).updateScrollbarsVisibility() is high (> 15) (gocyclo)
    • Line 456: warning: cyclomatic complexity 16 of function (*Scroller).recalc() is high (> 15) (gocyclo)
    • geometry/box.go
    • Line 43: warning: cyclomatic complexity 21 of function NewSegmentedBox() is high (> 15) (gocyclo)
    • gui/table.go
    • Line 1194: warning: cyclomatic complexity 20 of function (*Table).recalcHeader() is high (> 15) (gocyclo)
    • Line 887: warning: cyclomatic complexity 16 of function (*Table).onKey() is high (> 15) (gocyclo)
    • gui/hboxlayout.go
    • Line 86: warning: cyclomatic complexity 41 of function (*HBoxLayout).Recalc() is high (> 15) (gocyclo)
    • gui/builder_panel.go
    • Line 631: warning: cyclomatic complexity 21 of function buildChart() is high (> 15) (gocyclo)
    • Line 362: warning: cyclomatic complexity 16 of function buildMenu() is high (> 15) (gocyclo)
    • Line 738: warning: cyclomatic complexity 16 of function buildTable() 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)
    • gui/menu.go
    • Line 227: warning: cyclomatic complexity 25 of function (*Menu).onKey() is high (> 15) (gocyclo)
    • gui/root.go
    • Line 274: warning: cyclomatic complexity 21 of function (*Root).sendPanels() is high (> 15) (gocyclo)
    • gui/builder.go
    • Line 302: warning: cyclomatic complexity 19 of function (*Builder).ParseString() 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