Preparing report...

Report for github.com/erikdubbelboer/fasthttp

A+    Excellent!    Found 20 issues across 86 files

Tweet

gofmt95%

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!


golint97%

Golint is a linter for Go source code.


gocyclo82%

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.

    • fasthttp/header.go
    • Line 1771: warning: cyclomatic complexity 21 of function (*ResponseHeader).parseHeaders() is high (> 15) (gocyclo)
    • Line 1835: warning: cyclomatic complexity 18 of function (*RequestHeader).parseHeaders() is high (> 15) (gocyclo)
    • fasthttp/fs.go
    • Line 679: warning: cyclomatic complexity 28 of function (*fsHandler).handleRequest() is high (> 15) (gocyclo)
    • fasthttp/client.go
    • Line 1986: warning: cyclomatic complexity 27 of function (*pipelineConnClient).writer() is high (> 15) (gocyclo)
    • Line 1072: warning: cyclomatic complexity 26 of function (*HostClient).doNonNilReqResp() is high (> 15) (gocyclo)
    • fasthttp/header_test.go
    • Line 113: warning: cyclomatic complexity 23 of function TestRequestRawHeaders() is high (> 15) (gocyclo)
    • Line 1314: warning: cyclomatic complexity 22 of function TestResponseHeaderCookie() is high (> 15) (gocyclo)
    • Line 1262: warning: cyclomatic complexity 16 of function TestRequestHeaderVisitAll() is high (> 15) (gocyclo)
    • Line 1210: warning: cyclomatic complexity 16 of function TestResponseHeaderVisitAll() is high (> 15) (gocyclo)
    • fasthttp/args_test.go
    • Line 334: warning: cyclomatic complexity 17 of function TestArgsSetGetDel() is high (> 15) (gocyclo)
    • Line 32: warning: cyclomatic complexity 16 of function TestArgsAdd() is high (> 15) (gocyclo)
    • fasthttp/server_test.go
    • Line 746: warning: cyclomatic complexity 21 of function TestServerMultipartFormDataRequest() is high (> 15) (gocyclo)
    • Line 251: warning: cyclomatic complexity 18 of function TestServerResponseBodyStream() is high (> 15) (gocyclo)
    • Line 1051: warning: cyclomatic complexity 18 of function TestServerHTTP10ConnectionKeepAlive() is high (> 15) (gocyclo)
    • Line 1359: warning: cyclomatic complexity 16 of function TestCompressHandler() is high (> 15) (gocyclo)

ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell96%

Misspell Finds commonly misspelled English words