docker/swarmkit

View on GitHub
manager/watchapi/watch.go

Summary

Maintainability
A
1 hr
Test Coverage

Avoid deeply nested control flow statements.
Open

                if !request.IncludeOldObject {
                    eventMessage.OldObject = nil
                }
Severity: Major
Found in manager/watchapi/watch.go - About 45 mins to fix

    Method Server.Watch has 7 return statements (exceeds 4 allowed).
    Open

    func (s *Server) Watch(request *api.WatchRequest, stream api.Watch_WatchServer) error {
        ctx := stream.Context()
    
        s.mu.Lock()
        pctx := s.pctx
    Severity: Major
    Found in manager/watchapi/watch.go - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status