Preparing report...

Report for github.com/akiyosi/goneovim

A+    Excellent!    Found 12 issues across 38 files

Tweet

gofmt92%

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


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!


golint78%

Golint is a linter for Go source code.

    • goneovim/editor/rgba.go
    • Line 18: warning: exported type HSV should have comment or be unexported (golint)
    • Line 22: warning: exported type XYZ should have comment or be unexported (golint)
    • Line 55: warning: exported method RGBA.StringTransparent should have comment or be unexported (golint)
    • Line 207: warning: exported method RGBA.XYZ should have comment or be unexported (golint)
    • Line 230: warning: exported method RGBA.HSV should have comment or be unexported (golint)
    • Line 277: warning: exported method HSV.Colorfulness should have comment or be unexported (golint)
    • Line 288: warning: exported method HSV.Colorless should have comment or be unexported (golint)
    • Line 299: warning: exported method HSV.RGB should have comment or be unexported (golint)
    • goneovim/editor/window.go
    • Line 22: warning: exported const EXTWINBORDERSIZE should have comment (or a comment on this block) or be unexported (golint)
    • Line 70: warning: exported type IntInt should have comment or be unexported (golint)
    • Line 990: warning: receiver name win should be consistent with previous receiver name w for Window (golint)
    • Line 1371: warning: should omit 2nd value from range; this loop is equivalent to `for j := range ...` (golint)
    • Line 2376: warning: should omit 2nd value from range; this loop is equivalent to `for j := range ...` (golint)
    • goneovim/editor/editor.go
    • Line 28: warning: exported const GONEOVIMVERSION should have comment (or a comment on this block) or be unexported (golint)
    • Line 76: warning: exported type Options should have comment or be unexported (golint)

gocyclo94%

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.

    • goneovim/fuzzy/fuzzy.go
    • Line 303: warning: cyclomatic complexity 54 of function (*Fuzzy).processSource() is high (> 15) (gocyclo)
    • Line 167: warning: cyclomatic complexity 16 of function (*Fuzzy).filter() is high (> 15) (gocyclo)
    • Line 84: warning: cyclomatic complexity 16 of function (*Fuzzy).handle() is high (> 15) (gocyclo)

ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!