dotcloud/docker

View on GitHub
daemon/containerd/image_tag.go

Summary

Maintainability
A
50 mins
Test Coverage

Method ImageService.TagImage has 8 return statements (exceeds 4 allowed).
Open

func (i *ImageService) TagImage(ctx context.Context, imageID image.ID, newTag reference.Named) error {
    targetImage, err := i.resolveImage(ctx, imageID.String())
    if err != nil {
        return errors.Wrapf(err, "failed to resolve image id %q to a descriptor", imageID.String())
    }
Severity: Major
Found in daemon/containerd/image_tag.go - About 50 mins to fix

    There are no issues that match your filters.

    Category
    Status