dotcloud/docker

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

Summary

Maintainability
A
2 hrs
Test Coverage

Method driver.EventNotify has 8 return statements (exceeds 4 allowed).
Open

func (d *driver) EventNotify(etype driverapi.EventType, nid, tableName, key string, value []byte) {
    if tableName != ovPeerTable {
        log.G(context.TODO()).Errorf("Unexpected table notification for table %s received", tableName)
        return
    }
Severity: Major
Found in libnetwork/drivers/windows/overlay/joinleave_windows.go - About 50 mins to fix

    Method driver.Join has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func (d *driver) Join(ctx context.Context, nid, eid string, sboxKey string, jinfo driverapi.JoinInfo, options map[string]interface{}) error {
    Severity: Minor
    Found in libnetwork/drivers/windows/overlay/joinleave_windows.go - About 35 mins to fix

      Method driver.Join has 5 return statements (exceeds 4 allowed).
      Open

      func (d *driver) Join(ctx context.Context, nid, eid string, sboxKey string, jinfo driverapi.JoinInfo, options map[string]interface{}) error {
          ctx, span := otel.Tracer("").Start(ctx, "libnetwork.drivers.windows_overlay.Join", trace.WithAttributes(
              attribute.String("nid", nid),
              attribute.String("eid", eid),
              attribute.String("sboxKey", sboxKey)))
      Severity: Major
      Found in libnetwork/drivers/windows/overlay/joinleave_windows.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status