dotcloud/docker

View on GitHub

Showing 1,468 of 1,914 total issues

Method Daemon.Containers has 6 return statements (exceeds 4 allowed).
Open

func (daemon *Daemon) Containers(ctx context.Context, config *containertypes.ListOptions) ([]*containertypes.Summary, error) {
    if err := config.Filters.Validate(acceptedPsFilterTags); err != nil {
        return nil, err
    }

Severity: Major
Found in daemon/list.go - About 40 mins to fix

    Function doUnpackLayer has 6 return statements (exceeds 4 allowed).
    Open

    func doUnpackLayer(root string, layer io.Reader, options *archive.TarOptions) (int64, error) {
        var result int64
        optionsR, optionsW, err := os.Pipe()
        if err != nil {
            return 0, err
    Severity: Major
    Found in pkg/chrootarchive/archive_unix_nolinux.go - About 40 mins to fix

      Function GetLayerPath has 6 return statements (exceeds 4 allowed).
      Open

      func GetLayerPath(s Store, layer ChainID) (string, error) {
          ls, ok := s.(*layerStore)
          if !ok {
              return "", errors.New("unsupported layer store")
          }
      Severity: Major
      Found in layer/layer_windows.go - About 40 mins to fix

        Function NewTailReaderWithDelimiter has 6 return statements (exceeds 4 allowed).
        Open

        func NewTailReaderWithDelimiter(ctx context.Context, r SizeReaderAt, reqLines int, delimiter []byte) (*io.SectionReader, int, error) {
            if reqLines < 1 {
                return nil, 0, ErrNonPositiveLinesNumber
            }
            if len(delimiter) == 0 {
        Severity: Major
        Found in pkg/tailfile/tailfile.go - About 40 mins to fix

          Method manifestStore.Put has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          func (m *manifestStore) Put(ctx context.Context, manifest distribution.Manifest, desc ocispec.Descriptor, w content.Writer, ref reference.Named) error {
          Severity: Minor
          Found in distribution/manifest.go - About 35 mins to fix

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

            func NewTarExporter(is image.Store, lss layer.Store, rs refstore.Store, loggerImgEvent LogImageEvent, platform *ocispec.Platform) image.Exporter {
            Severity: Minor
            Found in image/tarexport/tarexport.go - About 35 mins to fix

              Method Manager.newResolver has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              func (pm *Manager) newResolver(ctx context.Context, tracker docker.StatusTracker, auth *registry.AuthConfig, headers http.Header, httpFallback bool) (remotes.Resolver, error) {
              Severity: Minor
              Found in plugin/registry.go - About 35 mins to fix

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

                func Mount(source string, target string, fstype string, flags uintptr, data string) (err error) {
                Severity: Minor
                Found in internal/unix_noeintr/fs_unix.go - About 35 mins to fix

                  Method Manager.Push has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  func (pm *Manager) Push(ctx context.Context, name string, metaHeader http.Header, authConfig *registry.AuthConfig, out io.Writer) error {
                  Severity: Minor
                  Found in plugin/backend_unsupported.go - About 35 mins to fix

                    Method Manager.Push has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                    func (pm *Manager) Push(ctx context.Context, name string, metaHeader http.Header, authConfig *registry.AuthConfig, outStream io.Writer) error {
                    Severity: Minor
                    Found in plugin/backend_linux.go - About 35 mins to fix

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

                          ctx context.Context,
                          netName, epName string,
                          epIface *EndpointInterface,
                          resolvers []*Resolver,
                          hnsEndpoints []hcsshim.HNSEndpoint,
                      Severity: Minor
                      Found in libnetwork/network_windows.go - About 35 mins to fix

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

                        func checkTable(ctx context.Context, ips []string, port, networkName, tableName string, expectedEntries int, fn func(string, string, string, string, chan resultTuple)) (opTime time.Duration) {
                        Severity: Minor
                        Found in libnetwork/cmd/networkdb-test/dbclient/ndbClient.go - About 35 mins to fix

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

                          func makeServiceCleanupFunc(c *Controller, s *service, nID, eID string, vip net.IP, ip net.IP) func() {
                          Severity: Minor
                          Found in libnetwork/service_common.go - About 35 mins to fix

                            Method NetworkDB.sendTableEvent has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                            func (nDB *NetworkDB) sendTableEvent(event TableEvent_Type, nid string, tname string, key string, entry *entry) error {
                            Severity: Minor
                            Found in libnetwork/networkdb/broadcast.go - About 35 mins to fix

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

                                  ctx context.Context,
                                  netName, epName string,
                                  config *containerConfig,
                                  epIface *EndpointInterface,
                                  resolvers []*Resolver,
                              Severity: Minor
                              Found in libnetwork/network_unix.go - About 35 mins to fix

                                Method ChainInfo.Link has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                func (c *ChainInfo) Link(action Action, ip1, ip2 net.IP, port int, proto string, bridgeName string) error {
                                Severity: Minor
                                Found in libnetwork/iptables/iptables.go - About 35 mins to fix

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

                                      ctx context.Context,
                                      netName, epName string,
                                      config *containerConfig,
                                      epIface *EndpointInterface,
                                      resolvers []*Resolver,
                                  Severity: Minor
                                  Found in libnetwork/network_windows.go - About 35 mins to fix

                                    Method Controller.addServiceBinding has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    func (c *Controller) addServiceBinding(name, sid, nid, eid string, vip net.IP, ingressPorts []*PortConfig, aliases []string, ip net.IP) error {
                                    Severity: Minor
                                    Found in libnetwork/service_unsupported.go - About 35 mins to fix

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

                                      func fetchTable(ip string, port int, network, tableName string, clusterPeers, networkPeers map[string]string, remediate bool) {
                                      Severity: Minor
                                      Found in libnetwork/cmd/diagnostic/main.go - About 35 mins to fix

                                        Method Controller.rmServiceBinding has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        func (c *Controller) rmServiceBinding(name, sid, nid, eid string, vip net.IP, ingressPorts []*PortConfig, aliases []string, ip net.IP) error {
                                        Severity: Minor
                                        Found in libnetwork/service_unsupported.go - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language