Preparing report...

Report for github.com/awesome-gocui/gocui

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


gocyclo88%

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.

    • gocui/escape.go
    • Line 91: warning: cyclomatic complexity 23 of function (*escapeInterpreter).parseOne() is high (> 15) (gocyclo)
    • gocui/gui.go
    • Line 546: warning: cyclomatic complexity 21 of function (*Gui).flush() is high (> 15) (gocyclo)
    • Line 624: warning: cyclomatic complexity 21 of function (*Gui).drawFrameEdges() is high (> 15) (gocyclo)
    • Line 731: warning: cyclomatic complexity 20 of function (*Gui).drawFrameCorners() is high (> 15) (gocyclo)
    • Line 671: warning: cyclomatic complexity 18 of function cornerCustomRune() is high (> 15) (gocyclo)
    • gocui/view.go
    • Line 547: warning: cyclomatic complexity 19 of function (*View).draw() is high (> 15) (gocyclo)
    • Line 641: warning: cyclomatic complexity 19 of function (*View).linesPosOnScreen() is high (> 15) (gocyclo)

golint88%

Golint is a linter for Go source code.

    • gocui/view.go
    • Line 395: warning: exported method View.WriteRunes should have comment or be unexported (golint)
    • Line 403: warning: exported method View.WriteString should have comment or be unexported (golint)
    • gocui/gui.go
    • Line 372: warning: comment on exported method Gui.BlacklistKeybinding should be of the form "BlacklistKeybinding ..." (golint)
    • Line 383: warning: comment on exported method Gui.WhitelistKeybinding should be of the form "WhitelistKeybinding ..." (golint)
    • gocui/tcell_driver.go
    • Line 40: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • gocui/testing.go
    • Line 31: warning: comment on exported method Gui.GetTestingScreen should be of the form "GetTestingScreen ..." (golint)
    • Line 71: warning: comment on exported method TestingScreen.SendKey should be of the form "SendKey ..." (golint)

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!


misspell88%

Misspell Finds commonly misspelled English words

    • gocui/view.go
    • Line 408: warning: "accessable" is a misspelling of "accessible" (misspell)
    • Line 641: warning: "visable" is a misspelling of "visible" (misspell)
    • Line 650: warning: "visable" is a misspelling of "visible" (misspell)
    • Line 701: warning: "visable" is a misspelling of "visible" (misspell)
    • Line 753: warning: "availabe" is a misspelling of "available" (misspell)
    • Line 855: warning: "visable" is a misspelling of "visible" (misspell)