Preparing report...

Report for github.com/lunny/tango

C    Needs some work    Found 8 issues across 37 files

Tweet

gofmt0%

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

An error occurred while running this test (AddError: could not parse "_repos/src/github.com/lunny/tango/fatal error: runtime: cannot allocate memory:1::warning: file is not gofmted with -s (gofmt)" - strconv.Atoi: parsing " runtime": invalid syntax)


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!


golint94%

Golint is a linter for Go source code.

    • tango/error.go
    • Line 87: warning: exported type ErrorKeyIsNotExist should have comment or be unexported (golint)
    • tango/query.go
    • Line 345: warning: comment on exported method Context.QueryFloat64 should be of the form "QueryFloat64 ..." (golint)
    • Line 350: warning: comment on exported method Context.QueryBool should be of the form "QueryBool ..." (golint)

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.

    • tango/router.go
    • Line 184: warning: cyclomatic complexity 25 of function parseNodes() is high (> 15) (gocyclo)
    • Line 304: warning: cyclomatic complexity 22 of function (*router).matchNode() is high (> 15) (gocyclo)
    • Line 438: warning: cyclomatic complexity 18 of function (*router).Route() 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!


misspell86%

Misspell Finds commonly misspelled English words

    • tango/compress.go
    • Line 28: warning: "Compresser" is a misspelling of "Compressor" (misspell)
    • Line 29: warning: "Compresser" is a misspelling of "Compressor" (misspell)
    • Line 33: warning: "Compresser" is a misspelling of "Compressor" (misspell)
    • Line 41: warning: "Compresser" is a misspelling of "Compressor" (misspell)
    • Line 49: warning: "Compresser" is a misspelling of "Compressor" (misspell)
    • Line 80: warning: "Compresser" is a misspelling of "Compressor" (misspell)
    • tango/logger.go
    • Line 36: warning: "implementes" is a misspelling of "implements" (misspell)
    • Line 43: warning: "implementes" is a misspelling of "implements" (misspell)
    • Line 50: warning: "implementes" is a misspelling of "implements" (misspell)
    • Line 57: warning: "implementes" is a misspelling of "implements" (misspell)
    • Line 64: warning: "implementes" is a misspelling of "implements" (misspell)
    • Line 71: warning: "implementes" is a misspelling of "implements" (misspell)
    • Line 78: warning: "implementes" is a misspelling of "implements" (misspell)
    • Line 85: warning: "implementes" is a misspelling of "implements" (misspell)
    • Line 104: warning: "implementes" is a misspelling of "implements" (misspell)
    • Line 109: warning: "implementes" is a misspelling of "implements" (misspell)
    • tango/return.go
    • Line 27: warning: "reponse" is a misspelling of "response" (misspell)
    • Line 36: warning: "implementes" is a misspelling of "implements" (misspell)
    • Line 44: warning: "implementes" is a misspelling of "implements" (misspell)
    • Line 49: warning: "descirbes" is a misspelling of "describes" (misspell)
    • Line 53: warning: "implementes" is a misspelling of "implements" (misspell)
    • Line 58: warning: "descirbes" is a misspelling of "describes" (misspell)
    • Line 61: warning: "implementes" is a misspelling of "implements" (misspell)