docker/swarmkit

View on GitHub

Showing 1,820 of 1,820 total issues

Avoid deeply nested control flow statements.
Open

                } else if fieldNum == 2 {
                    var mapmsglen int
                    for shift := uint(0); ; shift += 7 {
                        if shift >= 64 {
                            return ErrIntOverflowObjects
Severity: Major
Found in api/objects.pb.go - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                        if integer < 128 {
                            count++
                        }
    Severity: Major
    Found in api/snapshot.pb.go - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                          if b < 0x80 {
                              break
                          }
      Severity: Major
      Found in api/logbroker.pb.go - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                            if shift >= 64 {
                                return ErrIntOverflowSnapshot
                            }
        Severity: Major
        Found in api/snapshot.pb.go - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                          if packedLen < 0 {
                              return ErrInvalidLengthLogbroker
                          }
          Severity: Major
          Found in api/logbroker.pb.go - About 45 mins to fix

            Avoid deeply nested control flow statements.
            Open

                            for iNdEx < postIndex {
                                var v uint64
                                for shift := uint(0); ; shift += 7 {
                                    if shift >= 64 {
                                        return ErrIntOverflowSnapshot
            Severity: Major
            Found in api/snapshot.pb.go - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                                  if iNdEx >= l {
                                      return io.ErrUnexpectedEOF
                                  }
              Severity: Major
              Found in api/snapshot.pb.go - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                                for iNdEx < postIndex {
                                    var v LogStream
                                    for shift := uint(0); ; shift += 7 {
                                        if shift >= 64 {
                                            return ErrIntOverflowLogbroker
                Severity: Major
                Found in api/logbroker.pb.go - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                                  for shift := uint(0); ; shift += 7 {
                                      if shift >= 64 {
                                          return ErrIntOverflowLogbroker
                                      }
                                      if iNdEx >= l {
                  Severity: Major
                  Found in api/logbroker.pb.go - About 45 mins to fix

                    Avoid deeply nested control flow statements.
                    Open

                                    if postIndex > l {
                                        return io.ErrUnexpectedEOF
                                    }
                    Severity: Major
                    Found in api/logbroker.pb.go - About 45 mins to fix

                      Avoid deeply nested control flow statements.
                      Open

                                      if elementCount != 0 && len(m.Streams) == 0 {
                                          m.Streams = make([]LogStream, 0, elementCount)
                                      }
                      Severity: Major
                      Found in api/logbroker.pb.go - About 45 mins to fix

                        Avoid deeply nested control flow statements.
                        Open

                                        if postIndex < 0 {
                                            return ErrInvalidLengthSnapshot
                                        }
                        Severity: Major
                        Found in api/snapshot.pb.go - About 45 mins to fix

                          Avoid deeply nested control flow statements.
                          Open

                                              if b < 0x80 {
                                                  break
                                              }
                          Severity: Major
                          Found in api/snapshot.pb.go - About 45 mins to fix

                            Avoid deeply nested control flow statements.
                            Open

                                            if packedLen < 0 {
                                                return ErrInvalidLengthSnapshot
                                            }
                            Severity: Major
                            Found in api/snapshot.pb.go - About 45 mins to fix

                              Avoid deeply nested control flow statements.
                              Open

                                              if postIndex > l {
                                                  return io.ErrUnexpectedEOF
                                              }
                              Severity: Major
                              Found in api/snapshot.pb.go - About 45 mins to fix

                                Avoid deeply nested control flow statements.
                                Open

                                                    if shift >= 64 {
                                                        return ErrIntOverflowLogbroker
                                                    }
                                Severity: Major
                                Found in api/logbroker.pb.go - About 45 mins to fix

                                  Avoid deeply nested control flow statements.
                                  Open

                                                      if iNdEx >= l {
                                                          return io.ErrUnexpectedEOF
                                                      }
                                  Severity: Major
                                  Found in api/logbroker.pb.go - About 45 mins to fix

                                    Avoid deeply nested control flow statements.
                                    Open

                                                    if postIndex < 0 {
                                                        return ErrInvalidLengthLogbroker
                                                    }
                                    Severity: Major
                                    Found in api/logbroker.pb.go - About 45 mins to fix

                                      Avoid deeply nested control flow statements.
                                      Open

                                                      for shift := uint(0); ; shift += 7 {
                                                          if shift >= 64 {
                                                              return ErrIntOverflowSnapshot
                                                          }
                                                          if iNdEx >= l {
                                      Severity: Major
                                      Found in api/snapshot.pb.go - About 45 mins to fix

                                        Avoid deeply nested control flow statements.
                                        Open

                                                        if elementCount != 0 && len(m.Removed) == 0 {
                                                            m.Removed = make([]uint64, 0, elementCount)
                                                        }
                                        Severity: Major
                                        Found in api/snapshot.pb.go - About 45 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language