Preparing report...

Report for github.com/pinealctx/restgo

(v0.1.1)

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


golint25%

Golint is a linter for Go source code.

    • response.go
    • Line 12: warning: exported type IResponse should have comment or be unexported (golint)
    • Line 22: warning: exported type Response should have comment or be unexported (golint)
    • Line 27: warning: exported function NewResponse should have comment or be unexported (golint)
    • Line 31: warning: exported method Response.GetResponse should have comment or be unexported (golint)
    • Line 35: warning: exported method Response.StatusCode should have comment or be unexported (golint)
    • Line 39: warning: exported method Response.Data should have comment or be unexported (golint)
    • Line 49: warning: exported method Response.Pipe should have comment or be unexported (golint)
    • Line 55: warning: exported method Response.JSONUnmarshal should have comment or be unexported (golint)
    • Line 63: warning: exported method Response.XMLUnmarshal should have comment or be unexported (golint)
    • Line 71: warning: exported method Response.SaveFile should have comment or be unexported (golint)
    • util.go
    • Line 51: warning: exported function CloneURL should have comment or be unexported (golint)
    • client.go
    • Line 17: warning: exported type Client should have comment or be unexported (golint)
    • Line 26: warning: exported function New should have comment or be unexported (golint)
    • Line 45: warning: exported method Client.Do should have comment or be unexported (golint)
    • Line 83: warning: exported method Client.Execute should have comment or be unexported (golint)
    • Line 89: warning: exported method Client.Get should have comment or be unexported (golint)
    • Line 93: warning: exported method Client.Post should have comment or be unexported (golint)
    • Line 97: warning: exported method Client.Put should have comment or be unexported (golint)
    • option.go
    • Line 23: warning: exported type OptionFn should have comment or be unexported (golint)
    • Line 25: warning: exported function WithBaseURL should have comment or be unexported (golint)
    • Line 31: warning: exported function WithGlobalHeader should have comment or be unexported (golint)
    • Line 37: warning: exported function WithTransport should have comment or be unexported (golint)
    • Line 43: warning: exported function WithCert should have comment or be unexported (golint)
    • Line 54: warning: exported function WithJar should have comment or be unexported (golint)
    • Line 60: warning: exported function WithCookies should have comment or be unexported (golint)
    • Line 69: warning: exported function WithTimeout should have comment or be unexported (golint)
    • Line 75: warning: exported function WithCheckRedirect should have comment or be unexported (golint)
    • param.go
    • Line 18: warning: exported type IParam should have comment or be unexported (golint)
    • Line 28: warning: exported method BaseParam.ParamName should have comment or be unexported (golint)
    • Line 37: warning: exported function NewCookieParam should have comment or be unexported (golint)
    • Line 41: warning: exported method CookieParam.ParamName should have comment or be unexported (golint)
    • Line 50: warning: exported function NewHeaderParam should have comment or be unexported (golint)
    • Line 62: warning: exported function NewURLQueryParam should have comment or be unexported (golint)
    • Line 76: warning: exported function NewURLSegmentParam should have comment or be unexported (golint)
    • Line 88: warning: exported function NewFormDataParam should have comment or be unexported (golint)
    • Line 99: warning: exported function NewBodyParam should have comment or be unexported (golint)
    • Line 103: warning: exported function NewJSONBody should have comment or be unexported (golint)
    • Line 121: warning: exported function NewXMLBody should have comment or be unexported (golint)
    • Line 132: warning: exported method BodyParam.ParamName should have comment or be unexported (golint)
    • Line 145: warning: exported function NewBytesFileParam should have comment or be unexported (golint)
    • Line 155: warning: exported function NewPathFileParam should have comment or be unexported (golint)
    • Line 169: warning: exported method FileParam.ParamName should have comment or be unexported (golint)
    • Line 173: warning: exported type WriterFunc should have comment or be unexported (golint)
    • Line 175: warning: exported function BytesWriter should have comment or be unexported (golint)
    • Line 182: warning: exported function FileWriter should have comment or be unexported (golint)
    • Line 208: warning: exported function ObjectParams should have comment or be unexported (golint)
    • request.go
    • Line 18: warning: exported type IRequest should have comment or be unexported (golint)
    • Line 39: warning: exported type Request should have comment or be unexported (golint)
    • Line 55: warning: exported function NewRequest should have comment or be unexported (golint)
    • Line 62: warning: exported method Request.AddParam should have comment or be unexported (golint)
    • Line 82: warning: exported method Request.AddParams should have comment or be unexported (golint)
    • Line 89: warning: exported method Request.AddCookie should have comment or be unexported (golint)
    • Line 94: warning: exported method Request.AddHeader should have comment or be unexported (golint)
    • Line 101: warning: exported method Request.AddURLQuery should have comment or be unexported (golint)
    • Line 108: warning: exported method Request.AddURLSegment should have comment or be unexported (golint)
    • Line 119: warning: exported method Request.AddFormItem should have comment or be unexported (golint)
    • Line 124: warning: exported method Request.SetBody should have comment or be unexported (golint)
    • Line 132: warning: exported method Request.SetJSONBody should have comment or be unexported (golint)
    • Line 142: warning: exported method Request.SetXMLBody should have comment or be unexported (golint)
    • Line 152: warning: exported method Request.AddFileBytes should have comment or be unexported (golint)
    • Line 157: warning: exported method Request.AddFilePath should have comment or be unexported (golint)
    • Line 167: warning: exported method Request.WithContentType should have comment or be unexported (golint)
    • Line 172: warning: exported method Request.MakeURL should have comment or be unexported (golint)
    • Line 205: warning: exported method Request.GetMethod should have comment or be unexported (golint)
    • Line 212: warning: exported method Request.MakeRequestBody should have comment or be unexported (golint)
    • Line 228: warning: exported method Request.WrapperHTTPRequest should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!