dotcloud/docker

View on GitHub

Showing 1,468 of 1,914 total issues

Function getAddress has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

func getAddress(base netip.Prefix, bitmask *bitmap.Bitmap, prefAddress netip.Addr, ipr netip.Prefix, serial bool) (netip.Addr, error) {
Severity: Minor
Found in libnetwork/ipams/defaultipam/allocator.go - About 35 mins to fix

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

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

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

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

        Function programSA has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        func programSA(localIP, remoteIP net.IP, spi *spi, k *key, dir int, add bool) (fSA *netlink.XfrmState, rSA *netlink.XfrmState, err error) {
        Severity: Minor
        Found in libnetwork/drivers/overlay/encryption.go - About 35 mins to fix

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

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

            Function configurePortBindingIPv6 has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                ctx context.Context,
                pdc portDriverClient,
                disableNAT bool,
                bnd types.PortBinding,
                containerIP, defHostIP net.IP,
            Severity: Minor
            Found in libnetwork/drivers/bridge/port_mapping_linux.go - About 35 mins to fix

              Method PortMapper.AppendForwardingTableEntry has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              func (pm *PortMapper) AppendForwardingTableEntry(proto string, sourceIP net.IP, sourcePort int, containerIP string, containerPort int) error {
              Severity: Minor
              Found in libnetwork/portmapper/mapper_windows.go - About 35 mins to fix

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

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

                  Method PortDriverClient.AddPort has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      ctx context.Context,
                      proto string,
                      hostIP netip.Addr,
                      childIP netip.Addr,
                      hostPort int,
                  Severity: Minor
                  Found in libnetwork/drivers/bridge/internal/rlkclient/rootlesskit_client_linux.go - About 35 mins to fix

                    Function configurePortBindingIPv4 has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        ctx context.Context,
                        pdc portDriverClient,
                        disableNAT bool,
                        bnd types.PortBinding,
                        containerIPv4,
                    Severity: Minor
                    Found in libnetwork/drivers/bridge/port_mapping_linux.go - About 35 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/bridge/bridge_linux.go - About 35 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/overlay/joinleave.go - About 35 mins to fix

                          Function attemptBindHostPorts has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                              ctx context.Context,
                              cfg []portBindingReq,
                              proto string,
                              hostPortStart, hostPortEnd uint16,
                              proxyPath string,
                          Severity: Minor
                          Found in libnetwork/drivers/bridge/port_mapping_linux.go - About 35 mins to fix

                            Function setPerPortNAT has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                            func setPerPortNAT(b portBinding, ipv iptables.IPVersion, proxyPath string, bridgeName string, enable bool) error {
                            Severity: Minor
                            Found in libnetwork/drivers/bridge/port_mapping_linux.go - About 35 mins to fix

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

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

                                Method PortMapper.DeleteForwardingTableEntry has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                func (pm *PortMapper) DeleteForwardingTableEntry(proto string, sourceIP net.IP, sourcePort int, containerIP string, containerPort int) error {
                                Severity: Minor
                                Found in libnetwork/portmapper/mapper_windows.go - About 35 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/macvlan/macvlan_joinleave.go - About 35 mins to fix

                                    Function linkContainers has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    func linkContainers(action iptables.Action, parentIP, childIP net.IP, ports []types.TransportPort, bridge string, ignoreErrors bool) error {
                                    Severity: Minor
                                    Found in libnetwork/drivers/bridge/link.go - About 35 mins to fix

                                      Function CreateNoError has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      func CreateNoError(ctx context.Context, t *testing.T, client client.APIClient, name string, ops ...func(*network.CreateOptions)) string {
                                      Severity: Minor
                                      Found in integration/internal/network/network.go - About 35 mins to fix

                                        Function v2AuthHTTPClient has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        func v2AuthHTTPClient(endpoint *url.URL, authTransport http.RoundTripper, modifiers []transport.RequestModifier, creds auth.CredentialStore, scopes []auth.Scope) (*http.Client, error) {
                                        Severity: Minor
                                        Found in registry/auth.go - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language