dotcloud/docker

View on GitHub
daemon/images/image_squash.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method ImageService.SquashImage has 66 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (i *ImageService) SquashImage(id, parent string) (string, error) {
    var (
        img *image.Image
        err error
    )
Severity: Minor
Found in daemon/images/image_squash.go - About 1 hr to fix

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

    func (i *ImageService) SquashImage(id, parent string) (string, error) {
        var (
            img *image.Image
            err error
        )
    Severity: Major
    Found in daemon/images/image_squash.go - About 50 mins to fix

      There are no issues that match your filters.

      Category
      Status