Preparing report...

Report for github.com/fatih/vim-go

A    Great!    Found 23 issues across 49 files

Tweet

gofmt77%

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!


gocyclo97%

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.

    • vim-go/test/parse.go
    • Line 703: warning: cyclomatic complexity 105 of function inBodyIM() is high (> 15) (gocyclo)
    • Line 1209: warning: cyclomatic complexity 28 of function inTableIM() is high (> 15) (gocyclo)
    • Line 1566: warning: cyclomatic complexity 24 of function inSelectIM() is high (> 15) (gocyclo)
    • Line 1850: warning: cyclomatic complexity 24 of function parseForeignContent() is high (> 15) (gocyclo)
    • Line 1040: warning: cyclomatic complexity 22 of function (*parser).inBodyEndTagFormatting() is high (> 15) (gocyclo)
    • Line 110: warning: cyclomatic complexity 21 of function (*parser).indexOfElementInScope() is high (> 15) (gocyclo)
    • Line 1930: warning: cyclomatic complexity 16 of function (*parser).inForeignContent() is high (> 15) (gocyclo)
    • Line 417: warning: cyclomatic complexity 16 of function (*parser).resetInsertionMode() is high (> 15) (gocyclo)
    • Line 566: warning: cyclomatic complexity 16 of function inHeadIM() is high (> 15) (gocyclo)

golint63%

Golint is a linter for Go source code.

    • vim-go/test/parse.go
    • Line 1324: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1348: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1646: warning: if block ends with a return statement, so drop this else and outdent its block (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign91%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!