dotcloud/docker

View on GitHub
libnetwork/ipams/null/null.go

Summary

Maintainability
A
35 mins
Test Coverage

Method allocator.RequestPool has 5 return statements (exceeds 4 allowed).
Open

func (a *allocator) RequestPool(req ipamapi.PoolRequest) (ipamapi.AllocatedPool, error) {
    if req.AddressSpace != defaultAddressSpace {
        return ipamapi.AllocatedPool{}, types.InvalidParameterErrorf("unknown address space: %s", req.AddressSpace)
    }
    if req.Pool != "" {
Severity: Major
Found in libnetwork/ipams/null/null.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status