docker/swarmkit

View on GitHub

Showing 1,820 of 1,820 total issues

Method raftProxyResourceAllocatorServer.DetachNetwork has 9 return statements (exceeds 4 allowed).
Open

func (p *raftProxyResourceAllocatorServer) DetachNetwork(ctx context.Context, r *DetachNetworkRequest) (*DetachNetworkResponse, error) {

    conn, err := p.connSelector.LeaderConn(ctx)
    if err != nil {
        if err == raftselector.ErrIsLeader {
Severity: Major
Found in api/resource.pb.go - About 55 mins to fix

    Method Node.MarshalToSizedBuffer has 9 return statements (exceeds 4 allowed).
    Open

    func (m *Node) MarshalToSizedBuffer(dAtA []byte) (int, error) {
        i := len(dAtA)
        _ = i
        var l int
        _ = l
    Severity: Major
    Found in api/objects.pb.go - About 55 mins to fix

      Method Service.MarshalToSizedBuffer has 9 return statements (exceeds 4 allowed).
      Open

      func (m *Service) MarshalToSizedBuffer(dAtA []byte) (int, error) {
          i := len(dAtA)
          _ = i
          var l int
          _ = l
      Severity: Major
      Found in api/objects.pb.go - About 55 mins to fix

        Method raftProxyResourceAllocatorServer.AttachNetwork has 9 return statements (exceeds 4 allowed).
        Open

        func (p *raftProxyResourceAllocatorServer) AttachNetwork(ctx context.Context, r *AttachNetworkRequest) (*AttachNetworkResponse, error) {
        
            conn, err := p.connSelector.LeaderConn(ctx)
            if err != nil {
                if err == raftselector.ErrIsLeader {
        Severity: Major
        Found in api/resource.pb.go - About 55 mins to fix

          Method GetRootCACertificateRequest.Unmarshal has 9 return statements (exceeds 4 allowed).
          Open

          func (m *GetRootCACertificateRequest) Unmarshal(dAtA []byte) error {
              l := len(dAtA)
              iNdEx := 0
              for iNdEx < l {
                  preIndex := iNdEx
          Severity: Major
          Found in api/ca.pb.go - About 55 mins to fix

            Method GetUnlockKeyRequest.Unmarshal has 9 return statements (exceeds 4 allowed).
            Open

            func (m *GetUnlockKeyRequest) Unmarshal(dAtA []byte) error {
                l := len(dAtA)
                iNdEx := 0
                for iNdEx < l {
                    preIndex := iNdEx
            Severity: Major
            Found in api/ca.pb.go - About 55 mins to fix

              Method raftProxyDispatcherServer.Heartbeat has 9 return statements (exceeds 4 allowed).
              Open

              func (p *raftProxyDispatcherServer) Heartbeat(ctx context.Context, r *HeartbeatRequest) (*HeartbeatResponse, error) {
              
                  conn, err := p.connSelector.LeaderConn(ctx)
                  if err != nil {
                      if err == raftselector.ErrIsLeader {
              Severity: Major
              Found in api/dispatcher.pb.go - About 55 mins to fix

                Method PublishLogsResponse.Unmarshal has 9 return statements (exceeds 4 allowed).
                Open

                func (m *PublishLogsResponse) Unmarshal(dAtA []byte) error {
                    l := len(dAtA)
                    iNdEx := 0
                    for iNdEx < l {
                        preIndex := iNdEx
                Severity: Major
                Found in api/logbroker.pb.go - About 55 mins to fix

                  Method raftProxyDispatcherServer.UpdateVolumeStatus has 9 return statements (exceeds 4 allowed).
                  Open

                  func (p *raftProxyDispatcherServer) UpdateVolumeStatus(ctx context.Context, r *UpdateVolumeStatusRequest) (*UpdateVolumeStatusResponse, error) {
                  
                      conn, err := p.connSelector.LeaderConn(ctx)
                      if err != nil {
                          if err == raftselector.ErrIsLeader {
                  Severity: Major
                  Found in api/dispatcher.pb.go - About 55 mins to fix

                    Method raftProxyLogBrokerServer.PublishLogs has 9 return statements (exceeds 4 allowed).
                    Open

                    func (p *raftProxyLogBrokerServer) PublishLogs(stream LogBroker_PublishLogsServer) error {
                        ctx := stream.Context()
                        conn, err := p.connSelector.LeaderConn(ctx)
                        if err != nil {
                            if err == raftselector.ErrIsLeader {
                    Severity: Major
                    Found in api/logbroker.pb.go - About 55 mins to fix

                      Method UpdateTaskStatusResponse.Unmarshal has 9 return statements (exceeds 4 allowed).
                      Open

                      func (m *UpdateTaskStatusResponse) Unmarshal(dAtA []byte) error {
                          l := len(dAtA)
                          iNdEx := 0
                          for iNdEx < l {
                              preIndex := iNdEx
                      Severity: Major
                      Found in api/dispatcher.pb.go - About 55 mins to fix

                        Method ListenSubscriptionsRequest.Unmarshal has 9 return statements (exceeds 4 allowed).
                        Open

                        func (m *ListenSubscriptionsRequest) Unmarshal(dAtA []byte) error {
                            l := len(dAtA)
                            iNdEx := 0
                            for iNdEx < l {
                                preIndex := iNdEx
                        Severity: Major
                        Found in api/logbroker.pb.go - About 55 mins to fix

                          Method UpdateVolumeStatusResponse.Unmarshal has 9 return statements (exceeds 4 allowed).
                          Open

                          func (m *UpdateVolumeStatusResponse) Unmarshal(dAtA []byte) error {
                              l := len(dAtA)
                              iNdEx := 0
                              for iNdEx < l {
                                  preIndex := iNdEx
                          Severity: Major
                          Found in api/dispatcher.pb.go - About 55 mins to fix

                            Method raftProxyDispatcherServer.UpdateTaskStatus has 9 return statements (exceeds 4 allowed).
                            Open

                            func (p *raftProxyDispatcherServer) UpdateTaskStatus(ctx context.Context, r *UpdateTaskStatusRequest) (*UpdateTaskStatusResponse, error) {
                            
                                conn, err := p.connSelector.LeaderConn(ctx)
                                if err != nil {
                                    if err == raftselector.ErrIsLeader {
                            Severity: Major
                            Found in api/dispatcher.pb.go - About 55 mins to fix

                              Method GlobalJob.Unmarshal has 9 return statements (exceeds 4 allowed).
                              Open

                              func (m *GlobalJob) Unmarshal(dAtA []byte) error {
                                  l := len(dAtA)
                                  iNdEx := 0
                                  for iNdEx < l {
                                      preIndex := iNdEx
                              Severity: Major
                              Found in api/specs.pb.go - About 55 mins to fix

                                Method ClusterSpec.MarshalToSizedBuffer has 9 return statements (exceeds 4 allowed).
                                Open

                                func (m *ClusterSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) {
                                    i := len(dAtA)
                                    _ = i
                                    var l int
                                    _ = l
                                Severity: Major
                                Found in api/specs.pb.go - About 55 mins to fix

                                  Method GlobalService.Unmarshal has 9 return statements (exceeds 4 allowed).
                                  Open

                                  func (m *GlobalService) Unmarshal(dAtA []byte) error {
                                      l := len(dAtA)
                                      iNdEx := 0
                                      for iNdEx < l {
                                          preIndex := iNdEx
                                  Severity: Major
                                  Found in api/specs.pb.go - About 55 mins to fix

                                    Method raftProxyRaftServer.ResolveAddress has 9 return statements (exceeds 4 allowed).
                                    Open

                                    func (p *raftProxyRaftServer) ResolveAddress(ctx context.Context, r *ResolveAddressRequest) (*ResolveAddressResponse, error) {
                                    
                                        conn, err := p.connSelector.LeaderConn(ctx)
                                        if err != nil {
                                            if err == raftselector.ErrIsLeader {
                                    Severity: Major
                                    Found in api/raft.pb.go - About 55 mins to fix

                                      Method ProcessRaftMessageResponse.Unmarshal has 9 return statements (exceeds 4 allowed).
                                      Open

                                      func (m *ProcessRaftMessageResponse) Unmarshal(dAtA []byte) error {
                                          l := len(dAtA)
                                          iNdEx := 0
                                          for iNdEx < l {
                                              preIndex := iNdEx
                                      Severity: Major
                                      Found in api/raft.pb.go - About 55 mins to fix

                                        Method raftProxyRaftMembershipServer.Join has 9 return statements (exceeds 4 allowed).
                                        Open

                                        func (p *raftProxyRaftMembershipServer) Join(ctx context.Context, r *JoinRequest) (*JoinResponse, error) {
                                        
                                            conn, err := p.connSelector.LeaderConn(ctx)
                                            if err != nil {
                                                if err == raftselector.ErrIsLeader {
                                        Severity: Major
                                        Found in api/raft.pb.go - About 55 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language