dotcloud/docker

View on GitHub
registry/search_session.go

Summary

Maintainability
A
1 hr
Test Coverage

Method session.searchRepositories has 6 return statements (exceeds 4 allowed).
Open

func (r *session) searchRepositories(term string, limit int) (*registry.SearchResults, error) {
    if limit == 0 {
        limit = defaultSearchLimit
    }
    if limit < 1 || limit > 100 {
Severity: Major
Found in registry/search_session.go - About 40 mins to fix

    Method authTransport.RoundTrip has 5 return statements (exceeds 4 allowed).
    Open

    func (tr *authTransport) RoundTrip(orig *http.Request) (*http.Response, error) {
        // Authorization should not be set on 302 redirect for untrusted locations.
        // This logic mirrors the behavior in addRequiredHeadersToRedirectedRequests.
        // As the authorization logic is currently implemented in RoundTrip,
        // a 302 redirect is detected by looking at the Referrer header as go http package adds said header.
    Severity: Major
    Found in registry/search_session.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status