dotcloud/docker

View on GitHub
daemon/containerd/image_manifest.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method ImageManifest.IsPseudoImage has 7 return statements (exceeds 4 allowed).
Open

func (im *ImageManifest) IsPseudoImage(ctx context.Context) (bool, error) {
    if im.IsAttestation() {
        return true, nil
    }

Severity: Major
Found in daemon/containerd/image_manifest.go - About 45 mins to fix

    Method ImageService.walkReachableImageManifests has 6 return statements (exceeds 4 allowed).
    Open

    func (i *ImageService) walkReachableImageManifests(ctx context.Context, img containerdimages.Image, handler func(img *ImageManifest) error) error {
        desc := img.Target
    
        handleManifest := func(ctx context.Context, d ocispec.Descriptor) error {
            platformImg, err := i.NewImageManifest(ctx, img, d)
    Severity: Major
    Found in daemon/containerd/image_manifest.go - About 40 mins to fix

      Method ImageService.walkImageManifests has 6 return statements (exceeds 4 allowed).
      Open

      func (i *ImageService) walkImageManifests(ctx context.Context, img containerdimages.Image, handler func(img *ImageManifest) error) error {
          desc := img.Target
      
          handleManifest := func(ctx context.Context, d ocispec.Descriptor) error {
              platformImg, err := i.NewImageManifest(ctx, img, d)
      Severity: Major
      Found in daemon/containerd/image_manifest.go - About 40 mins to fix

        There are no issues that match your filters.

        Category
        Status