Showing 4 of 4 total issues
Method client.Do
has 6 return statements (exceeds 4 allowed). Open
Open
func (c *client) Do(
method string, url string, body interface{}, result interface{}) (*http.Response, error) {
request, err := c.CreateRequest(method, c.resolveURL(url), body)
if err != nil {
return nil, err
Function createRequest
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
method string, url string, body interface{}, encode bodyEncoder, contentType string) (*http.Request, error) {
Method AggregateError.Error
has 5 return statements (exceeds 4 allowed). Open
Open
func (aggregateError *AggregateError) Error() string {
buffer := bufferPool.Get().(*bytes.Buffer)
buffer.Reset()
if aggregateError.Header != "" {
if _, err := buffer.WriteString(aggregateError.Header); err != nil {
Function inspect
has 5 return statements (exceeds 4 allowed). Open
Open
func inspect(node ast.Node) bool {
call, ok := node.(*ast.CallExpr)
if !ok {
return true // continue parsing down the AST
}