dotcloud/docker

View on GitHub
volume/drivers/extpoint.go

Summary

Maintainability
A
1 hr
Test Coverage

Method Store.lookup has 7 return statements (exceeds 4 allowed).
Open

func (s *Store) lookup(name string, mode int) (volume.Driver, error) {
    if name == "" {
        return nil, errdefs.InvalidParameter(errors.New("driver name cannot be empty"))
    }
    s.driverLock.Lock(name)
Severity: Major
Found in volume/drivers/extpoint.go - About 45 mins to fix

    Function makePluginAdapter has 5 return statements (exceeds 4 allowed).
    Open

    func makePluginAdapter(p plugingetter.CompatPlugin) (*volumeDriverAdapter, error) {
        if pc, ok := p.(plugingetter.PluginWithV1Client); ok {
            return &volumeDriverAdapter{name: p.Name(), scopePath: p.ScopedPath, proxy: &volumeDriverProxy{pc.Client()}}, nil
        }
    
    
    Severity: Major
    Found in volume/drivers/extpoint.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status