voicera/gooseberry

View on GitHub
web/rest/rest.go

Summary

Maintainability
A
1 hr
Test Coverage

Method client.Do has 6 return statements (exceeds 4 allowed).
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
Severity: Major
Found in web/rest/rest.go - About 40 mins to fix

    Function createRequest has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        method string, url string, body interface{}, encode bodyEncoder, contentType string) (*http.Request, error) {
    Severity: Minor
    Found in web/rest/rest.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status