cloudfoundry-incubator/eirini

View on GitHub
k8s/utils/http.go

Summary

Maintainability
A
1 hr
Test Coverage
A
94%

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

func do(ctx context.Context, client *http.Client, method string, uri string, body interface{}) error {
Severity: Minor
Found in k8s/utils/http.go - About 35 mins to fix

    Function do has 5 return statements (exceeds 4 allowed).
    Open

    func do(ctx context.Context, client *http.Client, method string, uri string, body interface{}) error {
        bodyJSON, err := json.Marshal(body)
        if err != nil {
            return errors.Wrap(err, "cannot marshal body")
        }
    Severity: Major
    Found in k8s/utils/http.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status