Preparing report...

Report for fyne.io/fyne

(v1.4.3)

A+    Excellent!    Found 105 issues across 451 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!


gofmt80%

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!


gocyclo95%

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.

    • canvas/raster.go
    • Line 119: warning: cyclomatic complexity 17 of function NewRasterFromImage() is high (> 15) (gocyclo)
    • widget/textgrid.go
    • Line 355: warning: cyclomatic complexity 16 of function (*textGridRenderer).refreshGrid() is high (> 15) (gocyclo)
    • cmd/fyne/internal/mobile/binres/binres.go
    • Line 208: warning: cyclomatic complexity 45 of function UnmarshalXML() is high (> 15) (gocyclo)
    • Line 547: warning: cyclomatic complexity 36 of function addAttributes() is high (> 15) (gocyclo)
    • Line 731: warning: cyclomatic complexity 16 of function (*XML).kind() is high (> 15) (gocyclo)
    • dialog/file.go
    • Line 52: warning: cyclomatic complexity 22 of function (*fileDialog).makeUI() is high (> 15) (gocyclo)
    • widget/tree.go
    • Line 384: warning: cyclomatic complexity 19 of function (*treeContentRenderer).Layout() is high (> 15) (gocyclo)
    • widget/list.go
    • Line 152: warning: cyclomatic complexity 16 of function (*listRenderer).Layout() is high (> 15) (gocyclo)
    • widget/entry.go
    • Line 466: warning: cyclomatic complexity 40 of function (*Entry).TypedKey() is high (> 15) (gocyclo)
    • internal/driver/glfw/window.go
    • Line 946: warning: cyclomatic complexity 31 of function (*window).keyPressed() is high (> 15) (gocyclo)
    • Line 649: warning: cyclomatic complexity 30 of function (*window).mouseClicked() 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!