docker/swarmkit

View on GitHub

Showing 1,008 of 1,820 total issues

Method LogSelector.Unmarshal has 143 lines of code (exceeds 50 allowed). Consider refactoring.
Open

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

    Method LogContext.Unmarshal has 143 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

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

      Method ContainerSpec_DNSConfig.Unmarshal has 143 lines of code (exceeds 50 allowed). Consider refactoring.
      Open

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

        Method SelectByCustom.Unmarshal has 143 lines of code (exceeds 50 allowed). Consider refactoring.
        Open

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

          Function Do has 141 lines of code (exceeds 50 allowed). Consider refactoring.
          Open

          func Do(ctx context.Context, task *api.Task, ctlr Controller) (*api.TaskStatus, error) {
              status := task.Status.Copy()
          
              // stay in the current state.
              noop := func(errs ...error) (*api.TaskStatus, error) {
          Severity: Major
          Found in agent/exec/controller.go - About 4 hrs to fix

            Method WatchMessage_Event.Unmarshal has 138 lines of code (exceeds 50 allowed). Consider refactoring.
            Open

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

              Method Reconciler.ReconcileService has 138 lines of code (exceeds 50 allowed). Consider refactoring.
              Open

              func (r *Reconciler) ReconcileService(id string) error {
                  var (
                      service *api.Service
                      cluster *api.Cluster
                      tasks   []*api.Task
              Severity: Major
              Found in manager/orchestrator/jobs/global/reconciler.go - About 4 hrs to fix

                Method NodeSpec.Unmarshal has 137 lines of code (exceeds 50 allowed). Consider refactoring.
                Open

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

                  Method WatchRequest.Unmarshal has 137 lines of code (exceeds 50 allowed). Consider refactoring.
                  Open

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

                    Method WatchSelectors.MarshalToSizedBuffer has 135 lines of code (exceeds 50 allowed). Consider refactoring.
                    Open

                    func (m *WatchSelectors) MarshalToSizedBuffer(dAtA []byte) (int, error) {
                        i := len(dAtA)
                        _ = i
                        var l int
                        _ = l
                    Severity: Major
                    Found in protobuf/plugin/plugin.pb.go - About 4 hrs to fix

                      SelectBy has 34 methods (exceeds 20 allowed). Consider refactoring.
                      Open

                      type SelectBy struct {
                          // TODO(aaronl): Are all of these things we want to expose in
                          // the API? Exposing them may commit us to maintaining those
                          // internal indices going forward.
                          //
                      Severity: Minor
                      Found in api/watch.pb.go - About 4 hrs to fix

                        Function EventFromStoreAction has 133 lines of code (exceeds 50 allowed). Consider refactoring.
                        Open

                        func EventFromStoreAction(sa StoreAction, oldObject StoreObject) (Event, error) {
                            switch v := sa.Target.(type) {
                            case *StoreAction_Node:
                                switch sa.Action {
                                case StoreActionKindCreate:
                        Severity: Major
                        Found in api/objects.pb.go - About 4 hrs to fix

                          Method PublishLogsMessage.Unmarshal has 133 lines of code (exceeds 50 allowed). Consider refactoring.
                          Open

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

                            Method Node.Run has 133 lines of code (exceeds 50 allowed). Consider refactoring.
                            Open

                            func (n *Node) Run(ctx context.Context) error {
                                ctx = log.WithLogger(ctx, logrus.WithField("raft_id", fmt.Sprintf("%x", n.Config.ID)))
                                ctx, cancel := context.WithCancel(ctx)
                            
                                for _, node := range n.bootstrapMembers {
                            Severity: Major
                            Found in manager/state/raft/raft.go - About 4 hrs to fix

                              Method Snapshot.Unmarshal has 132 lines of code (exceeds 50 allowed). Consider refactoring.
                              Open

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

                                Method WatchRequest_WatchEntry.Unmarshal has 132 lines of code (exceeds 50 allowed). Consider refactoring.
                                Open

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

                                  Method NetworkAttachment.Unmarshal has 49 return statements (exceeds 4 allowed).
                                  Open

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

                                    Method Cluster.MarshalToSizedBuffer has 130 lines of code (exceeds 50 allowed). Consider refactoring.
                                    Open

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

                                      Method NetworkSpec.Unmarshal has 48 return statements (exceeds 4 allowed).
                                      Open

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

                                        Method WatchSelectors.Unmarshal has 48 return statements (exceeds 4 allowed).
                                        Open

                                        func (m *WatchSelectors) Unmarshal(dAtA []byte) error {
                                            l := len(dAtA)
                                            iNdEx := 0
                                            for iNdEx < l {
                                                preIndex := iNdEx
                                        Severity: Major
                                        Found in protobuf/plugin/plugin.pb.go - About 4 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language