docker/swarmkit

View on GitHub

Showing 1,008 of 1,820 total issues

Function skipObjects has 76 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func skipObjects(dAtA []byte) (n int, err error) {
    l := len(dAtA)
    iNdEx := 0
    depth := 0
    for iNdEx < l {
Severity: Major
Found in api/objects.pb.go - About 2 hrs to fix

    Function skipResource has 76 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func skipResource(dAtA []byte) (n int, err error) {
        l := len(dAtA)
        iNdEx := 0
        depth := 0
        for iNdEx < l {
    Severity: Major
    Found in api/resource.pb.go - About 2 hrs to fix

      Function skipSnapshot has 76 lines of code (exceeds 50 allowed). Consider refactoring.
      Open

      func skipSnapshot(dAtA []byte) (n int, err error) {
          l := len(dAtA)
          iNdEx := 0
          depth := 0
          for iNdEx < l {
      Severity: Major
      Found in api/snapshot.pb.go - About 2 hrs to fix

        Function skipDispatcher has 76 lines of code (exceeds 50 allowed). Consider refactoring.
        Open

        func skipDispatcher(dAtA []byte) (n int, err error) {
            l := len(dAtA)
            iNdEx := 0
            depth := 0
            for iNdEx < l {
        Severity: Major
        Found in api/dispatcher.pb.go - About 2 hrs to fix

          Function skipLogbroker has 76 lines of code (exceeds 50 allowed). Consider refactoring.
          Open

          func skipLogbroker(dAtA []byte) (n int, err error) {
              l := len(dAtA)
              iNdEx := 0
              depth := 0
              for iNdEx < l {
          Severity: Major
          Found in api/logbroker.pb.go - About 2 hrs to fix

            Function skipWatch has 76 lines of code (exceeds 50 allowed). Consider refactoring.
            Open

            func skipWatch(dAtA []byte) (n int, err error) {
                l := len(dAtA)
                iNdEx := 0
                depth := 0
                for iNdEx < l {
            Severity: Major
            Found in api/watch.pb.go - About 2 hrs to fix

              Function skipSpecs has 76 lines of code (exceeds 50 allowed). Consider refactoring.
              Open

              func skipSpecs(dAtA []byte) (n int, err error) {
                  l := len(dAtA)
                  iNdEx := 0
                  depth := 0
                  for iNdEx < l {
              Severity: Major
              Found in api/specs.pb.go - About 2 hrs to fix

                Function skipPlugin has 76 lines of code (exceeds 50 allowed). Consider refactoring.
                Open

                func skipPlugin(dAtA []byte) (n int, err error) {
                    l := len(dAtA)
                    iNdEx := 0
                    depth := 0
                    for iNdEx < l {
                Severity: Major
                Found in protobuf/plugin/plugin.pb.go - About 2 hrs to fix

                  Function skipRaft has 76 lines of code (exceeds 50 allowed). Consider refactoring.
                  Open

                  func skipRaft(dAtA []byte) (n int, err error) {
                      l := len(dAtA)
                      iNdEx := 0
                      depth := 0
                      for iNdEx < l {
                  Severity: Major
                  Found in api/raft.pb.go - About 2 hrs to fix

                    Method Supervisor.shouldRestart has 76 lines of code (exceeds 50 allowed). Consider refactoring.
                    Open

                    func (r *Supervisor) shouldRestart(ctx context.Context, t *api.Task, service *api.Service) bool {
                        // TODO(aluzzardi): This function should not depend on `service`.
                        // There are 3 possible restart policies.
                        switch orchestrator.RestartCondition(t) {
                        case api.RestartOnAny:
                    Severity: Major
                    Found in manager/orchestrator/restart/restart.go - About 2 hrs to fix

                      Method AttachNetworkRequest.Unmarshal has 22 return statements (exceeds 4 allowed).
                      Open

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

                        Method GetUnlockKeyResponse.Unmarshal has 22 return statements (exceeds 4 allowed).
                        Open

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

                          Method UpdateVolumeStatusRequest.Unmarshal has 22 return statements (exceeds 4 allowed).
                          Open

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

                            Method SessionRequest.Unmarshal has 22 return statements (exceeds 4 allowed).
                            Open

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

                              Method UpdateTaskStatusRequest.Unmarshal has 22 return statements (exceeds 4 allowed).
                              Open

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

                                Method UpdateTaskStatusRequest_TaskStatusUpdate.Unmarshal has 22 return statements (exceeds 4 allowed).
                                Open

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

                                  Method GenericRuntimeSpec.Unmarshal has 22 return statements (exceeds 4 allowed).
                                  Open

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

                                    Method testSuite.TestAllocator has 22 return statements (exceeds 4 allowed).
                                    Open

                                    func (suite *testSuite) TestAllocator() {
                                        s := store.NewMemoryStore(nil)
                                        suite.NotNil(s)
                                        defer s.Close()
                                        a := suite.newAllocator(s)
                                    Severity: Major
                                    Found in manager/allocator/allocator_test_suite.go - About 2 hrs to fix

                                      Method Node.Join has 75 lines of code (exceeds 50 allowed). Consider refactoring.
                                      Open

                                      func (n *Node) Join(ctx context.Context, req *api.JoinRequest) (*api.JoinResponse, error) {
                                          nodeInfo, err := ca.RemoteNode(ctx)
                                          if err != nil {
                                              return nil, err
                                          }
                                      Severity: Minor
                                      Found in manager/state/raft/raft.go - About 2 hrs to fix

                                        Function ConvertNodeWatch has 74 lines of code (exceeds 50 allowed). Consider refactoring.
                                        Open

                                        func ConvertNodeWatch(action WatchActionKind, filters []*SelectBy) ([]Event, error) {
                                            var (
                                                m             Node
                                                checkFuncs    []NodeCheckFunc
                                                hasRole       bool
                                        Severity: Minor
                                        Found in api/objects.pb.go - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language