dotcloud/docker

View on GitHub
plugin/store.go

Summary

Maintainability
A
1 hr
Test Coverage

Method Store.Get has 8 return statements (exceeds 4 allowed).
Open

func (ps *Store) Get(name, capability string, mode int) (plugingetter.CompatPlugin, error) {
    // Lookup using new model.
    if ps != nil {
        p, err := ps.GetV2Plugin(name)
        if err == nil {
Severity: Major
Found in plugin/store.go - About 50 mins to fix

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

    func (ps *Store) resolvePluginID(idOrName string) (string, error) {
        if validFullID.MatchString(idOrName) {
            return idOrName, nil
        }
    
    
    Severity: Major
    Found in plugin/store.go - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status