dotcloud/docker

View on GitHub
registry/resumable/resumablerequestreader.go

Summary

Maintainability
A
1 hr
Test Coverage

Method requestReader.Read has 7 return statements (exceeds 4 allowed).
Open

func (r *requestReader) Read(p []byte) (n int, err error) {
    if r.client == nil || r.request == nil {
        return 0, fmt.Errorf("client and request can't be nil")
    }
    isFreshRequest := false
Severity: Major
Found in registry/resumable/resumablerequestreader.go - About 45 mins to fix

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

    func NewRequestReaderWithInitialResponse(c *http.Client, r *http.Request, maxfail uint32, totalsize int64, initialResponse *http.Response) io.ReadCloser {
    Severity: Minor
    Found in registry/resumable/resumablerequestreader.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status