dotcloud/docker

View on GitHub
libnetwork/drivers/overlay/overlay.go

Summary

Maintainability
A
1 hr
Test Coverage

Method driver.DiscoverNew has 53 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (d *driver) DiscoverNew(dType discoverapi.DiscoveryType, data interface{}) error {
    switch dType {
    case discoverapi.NodeDiscovery:
        nodeData, ok := data.(discoverapi.NodeDiscoveryData)
        if !ok {
Severity: Minor
Found in libnetwork/drivers/overlay/overlay.go - About 1 hr to fix

    Method driver.DiscoverNew has 6 return statements (exceeds 4 allowed).
    Open

    func (d *driver) DiscoverNew(dType discoverapi.DiscoveryType, data interface{}) error {
        switch dType {
        case discoverapi.NodeDiscovery:
            nodeData, ok := data.(discoverapi.NodeDiscoveryData)
            if !ok {
    Severity: Major
    Found in libnetwork/drivers/overlay/overlay.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status