dotcloud/docker

View on GitHub
libnetwork/driverapi/ipamdata.go

Summary

Maintainability
A
1 hr
Test Coverage

Method IPAMData.Validate has 7 return statements (exceeds 4 allowed).
Open

func (i *IPAMData) Validate() error {
    var isV6 bool
    if i.Pool == nil {
        return types.InvalidParameterErrorf("invalid pool")
    }
Severity: Major
Found in libnetwork/driverapi/ipamdata.go - About 45 mins to fix

    Method IPAMData.UnmarshalJSON has 6 return statements (exceeds 4 allowed).
    Open

    func (i *IPAMData) UnmarshalJSON(data []byte) error {
        var (
            m   map[string]interface{}
            err error
        )
    Severity: Major
    Found in libnetwork/driverapi/ipamdata.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status