tauraamui/bluepanda

View on GitHub

Showing 9 of 17 total issues

Function convertFromBytes has 21 return statements (exceeds 4 allowed).
Open

func convertFromBytes(data []byte, i interface{}) error {
    if reflect.TypeOf(i).Kind() != reflect.Ptr {
        return fmt.Errorf("destination must be a pointer")
    }

Severity: Major
Found in internal/service/http_controllers.go - About 1 hr to fix

    Function convertFromBytes has 69 lines of code (exceeds 50 allowed). Consider refactoring.
    Open

    func convertFromBytes(data []byte, i interface{}) error {
        if reflect.TypeOf(i).Kind() != reflect.Ptr {
            return fmt.Errorf("destination must be a pointer")
        }
    
    
    Severity: Minor
    Found in internal/service/http_controllers.go - About 1 hr to fix

      Function file_service_proto_init has 59 lines of code (exceeds 50 allowed). Consider refactoring.
      Open

      func file_service_proto_init() {
          if File_service_proto != nil {
              return
          }
          if !protoimpl.UnsafeEnabled {
      Severity: Minor
      Found in pkg/api/service.pb.go - About 1 hr to fix

        Method rpcserver.Fetch has 52 lines of code (exceeds 50 allowed). Consider refactoring.
        Open

        func (s *rpcserver) Fetch(req *pb.FetchRequest, stream pb.BluePanda_FetchServer) error {
            ttype := req.GetType()
            uuidx := req.GetUuid()
        
            columns := req.GetColumns()
        Severity: Minor
        Found in internal/service/rpc_service.go - About 1 hr to fix

          Function convertToBytes has 10 return statements (exceeds 4 allowed).
          Open

          func convertToBytes(i interface{}) ([]byte, error) {
              switch v := i.(type) {
              case []byte:
                  return v, nil
              case string:
          Severity: Major
          Found in internal/service/http_controllers.go - About 1 hr to fix

            Method rpcserver.Fetch has 8 return statements (exceeds 4 allowed).
            Open

            func (s *rpcserver) Fetch(req *pb.FetchRequest, stream pb.BluePanda_FetchServer) error {
                ttype := req.GetType()
                uuidx := req.GetUuid()
            
                columns := req.GetColumns()
            Severity: Major
            Found in internal/service/rpc_service.go - About 50 mins to fix

              Function convertToEntries has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              func convertToEntries(tableName string, ownerUUID kvs.UUID, rowID uint32, data map[string]any, includeData bool) []kvs.Entry {
              Severity: Minor
              Found in internal/service/http_controllers.go - About 35 mins to fix

                Function convertToEntries has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                func convertToEntries(tableName string, ownerUUID UUID, rowID uint32, v reflect.Value, includeData bool) []Entry {
                Severity: Minor
                Found in pkg/kvs/entry.go - About 35 mins to fix

                  Function convertFromBytes has 5 return statements (exceeds 4 allowed).
                  Open

                  func convertFromBytes(data []byte, i interface{}) error {
                      // Check that the destination argument is a pointer.
                      if reflect.TypeOf(i).Kind() != reflect.Ptr {
                          return fmt.Errorf("destination must be a pointer")
                      }
                  Severity: Major
                  Found in pkg/kvs/entry.go - About 35 mins to fix
                    Severity
                    Category
                    Status
                    Source
                    Language