dotcloud/docker

View on GitHub
daemon/containerd/image_snapshot.go

Summary

Maintainability
A
1 hr
Test Coverage

Method ImageService.PrepareSnapshot has 9 return statements (exceeds 4 allowed).
Open

func (i *ImageService) PrepareSnapshot(ctx context.Context, id string, parentImage string, platform *ocispec.Platform, setupInit func(string) error) error {
    var parentSnapshot string
    if parentImage != "" {
        img, err := i.resolveImage(ctx, parentImage)
        if err != nil {
Severity: Major
Found in daemon/containerd/image_snapshot.go - About 55 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

      There are no issues that match your filters.

      Category
      Status