Preparing report...

Report for git.parallelcoin.io/dev/tview

(v0.0.0-20190428075449-d7a9d6c70ab2)

A+    Excellent!    Found 12 issues across 56 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!


gocyclo78%

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 48: warning: cyclomatic complexity 58 of function (*ansi).Write() is high (> 15) (gocyclo)
    • textview.go
    • Line 740: warning: cyclomatic complexity 48 of function (*TextView).Draw() is high (> 15) (gocyclo)
    • Line 575: warning: cyclomatic complexity 36 of function (*TextView).reindexBuffer() is high (> 15) (gocyclo)
    • Line 947: warning: cyclomatic complexity 22 of function (*TextView).InputHandler() is high (> 15) (gocyclo)
    • Line 425: warning: cyclomatic complexity 18 of function (*TextView).GetRegionText() is high (> 15) (gocyclo)
    • inputfield.go
    • Line 329: warning: cyclomatic complexity 28 of function (*InputField).InputHandler() is high (> 15) (gocyclo)
    • Line 230: warning: cyclomatic complexity 21 of function (*InputField).Draw() is high (> 15) (gocyclo)
    • list.go
    • Line 460: warning: cyclomatic complexity 26 of function (*List).InputHandler() is high (> 15) (gocyclo)
    • Line 376: warning: cyclomatic complexity 21 of function (*List).Draw() is high (> 15) (gocyclo)
    • table.go
    • Line 542: warning: cyclomatic complexity 119 of function (*Table).Draw() is high (> 15) (gocyclo)
    • Line 939: warning: cyclomatic complexity 60 of function (*Table).InputHandler() is high (> 15) (gocyclo)
    • grid.go
    • Line 307: warning: cyclomatic complexity 115 of function (*Grid).Draw() is high (> 15) (gocyclo)
    • form.go
    • Line 325: warning: cyclomatic complexity 32 of function (*Form).Draw() is high (> 15) (gocyclo)
    • dropdown.go
    • Line 260: warning: cyclomatic complexity 26 of function (*DropDown).Draw() is high (> 15) (gocyclo)
    • Line 351: warning: cyclomatic complexity 17 of function (*DropDown).InputHandler() is high (> 15) (gocyclo)
    • application.go
    • Line 126: warning: cyclomatic complexity 23 of function (*Application).Run() is high (> 15) (gocyclo)
    • box.go
    • Line 235: warning: cyclomatic complexity 21 of function (*Box).Draw() is high (> 15) (gocyclo)
    • treeview.go
    • Line 380: warning: cyclomatic complexity 46 of function (*TreeView).process() is high (> 15) (gocyclo)
    • Line 540: warning: cyclomatic complexity 36 of function (*TreeView).Draw() is high (> 15) (gocyclo)
    • Line 653: warning: cyclomatic complexity 16 of function (*TreeView).InputHandler() is high (> 15) (gocyclo)
    • util.go
    • Line 245: warning: cyclomatic complexity 43 of function printWithStyle() is high (> 15) (gocyclo)
    • Line 444: warning: cyclomatic complexity 23 of function WordWrap() is high (> 15) (gocyclo)

golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!