dotcloud/docker

View on GitHub
daemon/cluster/controllers/plugin/controller.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method Controller.Prepare has 6 return statements (exceeds 4 allowed).
Open

func (p *Controller) Prepare(ctx context.Context) (err error) {
    p.logger.Debug("Prepare")

    remote, err := reference.ParseNormalizedNamed(p.spec.Remote)
    if err != nil {
Severity: Major
Found in daemon/cluster/controllers/plugin/controller.go - About 40 mins to fix

    Method Controller.Start has 5 return statements (exceeds 4 allowed).
    Open

    func (p *Controller) Start(ctx context.Context) error {
        p.logger.Debug("Start")
    
        pl, err := p.backend.Get(p.pluginID)
        if err != nil {
    Severity: Major
    Found in daemon/cluster/controllers/plugin/controller.go - About 35 mins to fix

      Method Controller.Remove has 5 return statements (exceeds 4 allowed).
      Open

      func (p *Controller) Remove(ctx context.Context) error {
          p.logger.Debug("Remove")
      
          pl, err := p.backend.Get(p.pluginID)
          if err != nil {
      Severity: Major
      Found in daemon/cluster/controllers/plugin/controller.go - About 35 mins to fix

        Method Controller.Wait has 5 return statements (exceeds 4 allowed).
        Open

        func (p *Controller) Wait(ctx context.Context) error {
            p.logger.Debug("Wait")
        
            pl, err := p.backend.Get(p.pluginID)
            if err != nil {
        Severity: Major
        Found in daemon/cluster/controllers/plugin/controller.go - About 35 mins to fix

          There are no issues that match your filters.

          Category
          Status