Preparing report...

Report for github.com/ant-libs-go/http

A+    Excellent!    Found 6 issues across 7 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo100%

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.

No problems detected. Good job!


golint28%

Golint is a linter for Go source code.

    • http/server/server_mgr.go
    • Line 37: warning: exported type Cfg should have comment or be unexported (golint)
    • Line 45: warning: exported function StartDefaultServer should have comment or be unexported (golint)
    • Line 49: warning: exported function StopDefaultServer should have comment or be unexported (golint)
    • Line 53: warning: exported function DefaultServer should have comment or be unexported (golint)
    • Line 57: warning: exported function StartServer should have comment or be unexported (golint)
    • Line 66: warning: exported function StopServer should have comment or be unexported (golint)
    • Line 77: warning: exported function Server should have comment or be unexported (golint)
    • Line 85: warning: exported function SafeServer should have comment or be unexported (golint)
    • http/http.go
    • Line 17: warning: exported type Codec should have comment or be unexported (golint)
    • Line 20: warning: exported const CODEC_NOSET should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported function Encode should have comment or be unexported (golint)
    • Line 43: warning: exported function Decode should have comment or be unexported (golint)
    • http/client/client.go
    • Line 26: warning: exported type REST_METHOD should have comment or be unexported (golint)
    • Line 29: warning: exported const REST_METHOD_GET should have comment (or a comment on this block) or be unexported (golint)
    • Line 37: warning: exported const DefaultUserAgent should have comment (or a comment on this block) or be unexported (golint)
    • Line 40: warning: exported type RestClientPool should have comment or be unexported (golint)
    • Line 47: warning: exported function NewRestClientPool should have comment or be unexported (golint)
    • Line 69: warning: exported method RestClientPool.SetHeader should have comment or be unexported (golint)
    • Line 69: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 75: warning: comment on exported method RestClientPool.Call should be of the form "Call ..." (golint)
    • Line 76: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 84: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 102: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 110: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 117: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 138: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 150: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 165: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 181: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • http/client/client_mgr.go
    • Line 37: warning: exported type Cfg should have comment or be unexported (golint)
    • Line 56: warning: exported function Call should have comment or be unexported (golint)
    • Line 65: warning: exported function Pool should have comment or be unexported (golint)
    • Line 73: warning: exported function SafePool should have comment or be unexported (golint)
    • Line 100: warning: exported function LoadCfg should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign85%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!