dotcloud/docker

View on GitHub
builder/builder-next/adapters/localinlinecache/inlinecache.go

Summary

Maintainability
A
1 hr
Test Coverage

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 localImporter.importInlineCache has 5 return statements (exceeds 4 allowed).
    Open

    func (li *localImporter) importInlineCache(ctx context.Context, dt []byte, cc solver.CacheExporterTarget) error {
        var img image
    
        if err := json.Unmarshal(dt, &img); err != nil {
            return err
    Severity: Major
    Found in builder/builder-next/adapters/localinlinecache/inlinecache.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status