Preparing report...

Report for github.com/ales999/tcell/v2

(v2.7.4)

A+    Excellent!    Found 8 issues across 83 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!


gofmt97%

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


gocyclo91%

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.

    • terminfo/terminfo.go
    • Line 340: warning: cyclomatic complexity 70 of function (*Terminfo).TParm() is high (> 15) (gocyclo)
    • Line 693: warning: cyclomatic complexity 21 of function LookupTerminfo() is high (> 15) (gocyclo)
    • tscreen.go
    • Line 806: warning: cyclomatic complexity 38 of function (*tScreen).drawCell() is high (> 15) (gocyclo)
    • Line 1367: warning: cyclomatic complexity 32 of function (*tScreen).parseSgrMouse() is high (> 15) (gocyclo)
    • Line 725: warning: cyclomatic complexity 27 of function (*tScreen).sendFgBg() is high (> 15) (gocyclo)
    • Line 1722: warning: cyclomatic complexity 22 of function (*tScreen).collectEventsFromInput() is high (> 15) (gocyclo)
    • Line 1515: warning: cyclomatic complexity 20 of function (*tScreen).parseClipboard() is high (> 15) (gocyclo)
    • Line 410: warning: cyclomatic complexity 18 of function (*tScreen).prepareExtendedOSC() is high (> 15) (gocyclo)
    • terminfo/mkinfo.go
    • Line 204: warning: cyclomatic complexity 26 of function getinfo() is high (> 15) (gocyclo)
    • Line 78: warning: cyclomatic complexity 22 of function unescape() is high (> 15) (gocyclo)
    • terminfo/dynamic/dynamic.go
    • Line 64: warning: cyclomatic complexity 21 of function unescape() is high (> 15) (gocyclo)
    • Line 185: warning: cyclomatic complexity 21 of function LoadTerminfo() is high (> 15) (gocyclo)
    • console_win.go
    • Line 742: warning: cyclomatic complexity 18 of function (*cScreen).getConsoleInput() is high (> 15) (gocyclo)
    • Line 941: warning: cyclomatic complexity 18 of function (*cScreen).sendVtStyle() 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