gitlabhq/gitlab-shell

View on GitHub
internal/gitlabnet/lfstransfer/client.go

Summary

Maintainability
A
1 hr
Test Coverage

Method Client.Batch has 6 return statements (exceeds 4 allowed).
Open

func (c *Client) Batch(operation string, reqObjects []*BatchObject, ref string, reqHashAlgo string) (*BatchResponse, error) {
    var bref *batchRef

    // FIXME: This causes tests to fail
    // if ref == "" {
Severity: Major
Found in internal/gitlabnet/lfstransfer/client.go - About 40 mins to fix

    Method Client.PutObject has 5 return statements (exceeds 4 allowed).
    Open

    func (c *Client) PutObject(oid, href string, headers map[string]string, r io.Reader) error {
        req, err := http.NewRequest(http.MethodPut, href, r)
        if err != nil {
            return err
        }
    Severity: Major
    Found in internal/gitlabnet/lfstransfer/client.go - About 35 mins to fix

      FIXME found
      Open

          // FIXME: This causes tests to fail

      There are no issues that match your filters.

      Category
      Status