Preparing report...

Report for github.com/gdamore/tcell

(v1.4.0)

A    Great!    Found 24 issues across 68 files

Tweet

gofmt72%

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

    • doc.go
    • Line 1: warning: file is not gofmted with -s (gofmt)

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!


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.

    • tscreen.go
    • Line 967: warning: cyclomatic complexity 31 of function (*tScreen).parseSgrMouse() is high (> 15) (gocyclo)
    • Line 495: warning: cyclomatic complexity 21 of function (*tScreen).sendFgBg() is high (> 15) (gocyclo)
    • Line 555: warning: cyclomatic complexity 18 of function (*tScreen).drawCell() is high (> 15) (gocyclo)
    • Line 1225: warning: cyclomatic complexity 17 of function (*tScreen).collectEventsFromInput() is high (> 15) (gocyclo)
    • terminfo/dynamic/dynamic.go
    • Line 185: warning: cyclomatic complexity 23 of function LoadTerminfo() is high (> 15) (gocyclo)
    • Line 64: warning: cyclomatic complexity 21 of function unescape() is high (> 15) (gocyclo)
    • terminfo/mkinfo.go
    • Line 203: warning: cyclomatic complexity 23 of function getinfo() is high (> 15) (gocyclo)
    • Line 77: warning: cyclomatic complexity 22 of function unescape() is high (> 15) (gocyclo)
    • console_win.go
    • Line 583: warning: cyclomatic complexity 16 of function (*cScreen).getConsoleInput() 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!


misspell94%

Misspell Finds commonly misspelled English words

    • doc.go
    • Line 39: warning: "unneccessarily" is a misspelling of "unnecessarily" (misspell)
    • screen.go
    • Line 55: warning: "displayd" is a misspelling of "displayed" (misspell)