Preparing report...

Report for gh.loli.garden/buaazp/fasthttprouter

(v0.1.1)

A    Great!    Found 6 issues across 9 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!


gocyclo44%

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.

    • router_test.go
    • Line 313: warning: cyclomatic complexity 46 of function TestRouterOPTIONS() is high (> 15) (gocyclo)
    • Line 70: warning: cyclomatic complexity 29 of function TestRouterAPI() is high (> 15) (gocyclo)
    • Line 599: warning: cyclomatic complexity 23 of function TestRouterNotFound() is high (> 15) (gocyclo)
    • Line 505: warning: cyclomatic complexity 22 of function TestRouterNotAllowed() is high (> 15) (gocyclo)
    • Line 226: warning: cyclomatic complexity 18 of function TestRouterChaining() is high (> 15) (gocyclo)
    • tree.go
    • Line 471: warning: cyclomatic complexity 46 of function (*node).findCaseInsensitivePathRec() is high (> 15) (gocyclo)
    • Line 328: warning: cyclomatic complexity 33 of function (*node).getValue() is high (> 15) (gocyclo)
    • Line 83: warning: cyclomatic complexity 26 of function (*node).addRoute() is high (> 15) (gocyclo)
    • Line 210: warning: cyclomatic complexity 17 of function (*node).insertChild() is high (> 15) (gocyclo)
    • path.go
    • Line 21: warning: cyclomatic complexity 26 of function CleanPath() is high (> 15) (gocyclo)
    • router.go
    • Line 291: warning: cyclomatic complexity 21 of function (*Router).Handler() is high (> 15) (gocyclo)
    • tree_test.go
    • Line 491: warning: cyclomatic complexity 19 of function TestTreeFindCaseInsensitivePath() 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!


misspell88%

Misspell Finds commonly misspelled English words