Preparing report...

Report for github.com/nathanaellee15/tview

(v0.0.0-20240914060401-1eae6545c456)

A+    Excellent!    Found 16 issues across 63 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo76%

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.

    • ansi.go
    • Line 49: warning: cyclomatic complexity 66 of function (*ansi).Write() is high (> 15) (gocyclo)
    • textview.go
    • Line 995: warning: cyclomatic complexity 75 of function (*TextView).Draw() is high (> 15) (gocyclo)
    • Line 853: warning: cyclomatic complexity 24 of function (*TextView).parseAhead() is high (> 15) (gocyclo)
    • Line 1303: warning: cyclomatic complexity 23 of function (*TextView).InputHandler() is high (> 15) (gocyclo)
    • Line 604: warning: cyclomatic complexity 20 of function (*TextView).Highlight() is high (> 15) (gocyclo)
    • Line 1367: warning: cyclomatic complexity 18 of function (*TextView).MouseHandler() is high (> 15) (gocyclo)
    • strings.go
    • Line 221: warning: cyclomatic complexity 91 of function parseTag() is high (> 15) (gocyclo)
    • Line 110: warning: cyclomatic complexity 28 of function step() is high (> 15) (gocyclo)
    • image.go
    • Line 441: warning: cyclomatic complexity 59 of function (*Image).stamp() is high (> 15) (gocyclo)
    • Line 300: warning: cyclomatic complexity 16 of function (*Image).render() is high (> 15) (gocyclo)
    • application.go
    • Line 260: warning: cyclomatic complexity 49 of function (*Application).Run() is high (> 15) (gocyclo)
    • Line 501: warning: cyclomatic complexity 20 of function (*Application).fireMouseActions() is high (> 15) (gocyclo)
    • dropdown.go
    • Line 330: warning: cyclomatic complexity 33 of function (*DropDown).Draw() is high (> 15) (gocyclo)
    • box.go
    • Line 375: warning: cyclomatic complexity 18 of function (*Box).DrawForSubclass() is high (> 15) (gocyclo)
    • grid.go
    • Line 270: warning: cyclomatic complexity 117 of function (*Grid).Draw() is high (> 15) (gocyclo)
    • Line 657: warning: cyclomatic complexity 19 of function (*Grid).InputHandler() is high (> 15) (gocyclo)
    • list.go
    • Line 571: warning: cyclomatic complexity 33 of function (*List).InputHandler() is high (> 15) (gocyclo)
    • Line 466: warning: cyclomatic complexity 22 of function (*List).Draw() is high (> 15) (gocyclo)
    • textarea.go
    • Line 2208: warning: cyclomatic complexity 100 of function (*TextArea).InputHandler() is high (> 15) (gocyclo)
    • Line 1350: warning: cyclomatic complexity 66 of function (*TextArea).Draw() is high (> 15) (gocyclo)
    • Line 1723: warning: cyclomatic complexity 37 of function (*TextArea).findCursor() is high (> 15) (gocyclo)
    • Line 653: warning: cyclomatic complexity 36 of function (*TextArea).Select() is high (> 15) (gocyclo)
    • Line 1007: warning: cyclomatic complexity 32 of function (*TextArea).replace() is high (> 15) (gocyclo)
    • Line 2599: warning: cyclomatic complexity 25 of function (*TextArea).MouseHandler() is high (> 15) (gocyclo)
    • Line 1880: warning: cyclomatic complexity 21 of function (*TextArea).step() is high (> 15) (gocyclo)
    • Line 1612: warning: cyclomatic complexity 20 of function (*TextArea).extendLines() is high (> 15) (gocyclo)
    • Line 532: warning: cyclomatic complexity 18 of function (*TextArea).GetSelection() is high (> 15) (gocyclo)
    • treeview.go
    • Line 502: warning: cyclomatic complexity 47 of function (*TreeView).process() is high (> 15) (gocyclo)
    • Line 662: warning: cyclomatic complexity 34 of function (*TreeView).Draw() is high (> 15) (gocyclo)
    • Line 769: warning: cyclomatic complexity 21 of function (*TreeView).InputHandler() is high (> 15) (gocyclo)
    • form.go
    • Line 504: warning: cyclomatic complexity 35 of function (*Form).Draw() is high (> 15) (gocyclo)
    • Line 706: warning: cyclomatic complexity 18 of function (*Form).Focus() is high (> 15) (gocyclo)
    • Line 208: warning: cyclomatic complexity 16 of function (*Form).SetFocus() is high (> 15) (gocyclo)
    • inputfield.go
    • Line 511: warning: cyclomatic complexity 25 of function (*InputField).InputHandler() is high (> 15) (gocyclo)
    • util.go
    • Line 57: warning: cyclomatic complexity 24 of function printWithStyle() is high (> 15) (gocyclo)
    • table.go
    • Line 872: warning: cyclomatic complexity 134 of function (*Table).Draw() is high (> 15) (gocyclo)
    • Line 1369: warning: cyclomatic complexity 83 of function (*Table).InputHandler() is high (> 15) (gocyclo)

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!


misspell98%

Misspell Finds commonly misspelled English words