dotcloud/docker

View on GitHub

Showing 1,468 of 1,914 total issues

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

func NewRouter(backend Backend, searcher Searcher, referenceBackend reference.Store, imageStore image.Store, layerStore layer.Store) router.Router {
Severity: Minor
Found in api/server/router/image/image.go - About 35 mins to fix

    Method Worker.ResolveSourceMetadata has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

    func (w *Worker) ResolveSourceMetadata(ctx context.Context, op *pb.SourceOp, opt sourceresolver.Opt, sm *session.Manager, g session.Group) (*sourceresolver.MetaResponse, error) {
    Severity: Minor
    Found in builder/builder-next/worker/worker.go - About 35 mins to fix

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

      func getAccountIdentity(ctx context.Context, builder *Builder, accountName string, ctrRootPath string, state *dispatchState) (idtools.Identity, error) {
      Severity: Minor
      Found in builder/dockerfile/internals_windows.go - About 35 mins to fix

        Method Builder.exportImage has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

        func (b *Builder) exportImage(ctx context.Context, state *dispatchState, layer builder.RWLayer, parent builder.Image, runConfig *container.Config) error {
        Severity: Minor
        Found in builder/dockerfile/internals.go - About 35 mins to fix

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

          func tagImages(ctx context.Context, ic ImageComponent, stdout io.Writer, imageID image.ID, repoAndTags []reference.Named) error {
          Severity: Minor
          Found in api/server/backend/build/tag.go - About 35 mins to fix

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

            func parseChownFlag(ctx context.Context, builder *Builder, state *dispatchState, chown, ctrRootPath string, identityMapping idtools.IdentityMapping) (idtools.Identity, error) {
            Severity: Minor
            Found in builder/dockerfile/internals_linux.go - About 35 mins to fix

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

              func newDispatchRequest(builder *Builder, escapeToken rune, source builder.Source, buildArgs *BuildArgs, stages *stagesBuildResults) dispatchRequest {
              Severity: Minor
              Found in builder/dockerfile/evaluator.go - About 35 mins to fix

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

                func ResolveCacheImporterFunc(sm *session.Manager, resolverFunc docker.RegistryHosts, cs content.Store, rs reference.Store, is imagestore.Store) remotecache.ResolveCacheImporterFunc {
                Severity: Minor
                Found in builder/builder-next/adapters/localinlinecache/inlinecache.go - About 35 mins to fix

                  Method Worker.ResolveImageConfig has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  func (w *Worker) ResolveImageConfig(ctx context.Context, ref string, opt sourceresolver.Opt, sm *session.Manager, g session.Group) (digest.Digest, []byte, error) {
                  Severity: Minor
                  Found in builder/builder-next/worker/worker.go - About 35 mins to fix

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

                    func WriteLogStream(_ context.Context, w http.ResponseWriter, msgs <-chan *backend.LogMessage, config *container.LogsOptions, mux bool) {
                    Severity: Minor
                    Found in api/server/httputils/write_log_stream.go - About 35 mins to fix

                      Method ImageService.PrepareSnapshot has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      func (i *ImageService) PrepareSnapshot(ctx context.Context, id string, parentImage string, platform *ocispec.Platform, setupInit func(string) error) error {
                      Severity: Minor
                      Found in daemon/containerd/image_snapshot.go - About 35 mins to fix

                        Method ImageService.imageSummary has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                        func (i *ImageService) imageSummary(ctx context.Context, img images.Image, platformMatcher platforms.MatchComparer,
                            opts imagetypes.ListOptions, tagsByDigest map[digest.Digest][]string,
                        Severity: Minor
                        Found in daemon/containerd/image_list.go - About 35 mins to fix

                          Method task.Exec has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          func (t *task) Exec(ctx context.Context, processID string, spec *specs.Process, withStdin bool, attachStdio libcontainerdtypes.StdioCallback) (libcontainerdtypes.Process, error) {
                          Severity: Minor
                          Found in libcontainerd/remote/client.go - About 35 mins to fix

                            Method task.Exec has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                            func (t *task) Exec(ctx context.Context, processID string, spec *specs.Process, withStdin bool, attachStdio libcontainerdtypes.StdioCallback) (_ libcontainerdtypes.Process, retErr error) {
                            Severity: Minor
                            Found in libcontainerd/local/local_windows.go - About 35 mins to fix

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

                              func compressAndWriteBlob(ctx context.Context, cs content.Store, compression archive.Compression, mediaType string, uncompressedLayerReader io.Reader) (digest.Digest, digest.Digest, error) {
                              Severity: Minor
                              Found in daemon/containerd/image_import.go - About 35 mins to fix

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

                                func storeJson(ctx context.Context, cs content.Ingester, mt string, obj interface{}, labels map[string]string) (ocispec.Descriptor, error) {
                                Severity: Minor
                                Found in daemon/containerd/image_import.go - About 35 mins to fix

                                  Method ImageService.LoadImage has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                  func (i *ImageService) LoadImage(ctx context.Context, inTar io.ReadCloser, platform *ocispec.Platform, outStream io.Writer, quiet bool) error {
                                  Severity: Minor
                                  Found in daemon/containerd/image_exporter.go - About 35 mins to fix

                                    Method ImageService.pullForBuilder has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                    func (i *ImageService) pullForBuilder(ctx context.Context, name string, authConfigs map[string]registry.AuthConfig, output io.Writer, platform *ocispec.Platform) (*ocispec.Descriptor, error) {
                                    Severity: Minor
                                    Found in daemon/containerd/image_builder.go - About 35 mins to fix

                                      Method ImageService.deleteAll has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                      func (i *ImageService) deleteAll(ctx context.Context, imgID image.ID, all []images.Image, c conflictType, prune bool) (records []imagetypes.DeleteResponse, err error) {
                                      Severity: Minor
                                      Found in daemon/containerd/image_delete.go - About 35 mins to fix

                                        Method Cluster.UpdateService has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                        func (c *Cluster) UpdateService(serviceIDOrName string, version uint64, spec swarm.ServiceSpec, flags types.ServiceUpdateOptions, queryRegistry bool) (*swarm.ServiceUpdateResponse, error) {
                                        Severity: Minor
                                        Found in daemon/cluster/services.go - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language