teableio/teable

View on GitHub

Showing 671 of 671 total issues

Avoid too many return statements within this function.
Open

      return (
        <LinkEditor
          className={className}
          cellValue={cellValue as ILinkCellValue | ILinkCellValue[]}
          options={options as ILinkFieldOptions}
Severity: Major
Found in packages/sdk/src/components/cell-value-editor/CellEditorMain.tsx - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

        return null;
    Severity: Major
    Found in packages/core/src/models/field/derivate/single-select.field.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

                    return {
                      ...baseCellProps,
                      type: CellType.Boolean,
                      data: (cellValue as boolean) || false,
                      isMultiple,
      Severity: Major
      Found in packages/sdk/src/components/grid-enhancements/hooks/use-grid-columns.tsx - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                    return {
                      ...baseCellProps,
                      type: CellType.Select,
                      data: cv,
                      displayData,
        Severity: Major
        Found in packages/sdk/src/components/grid-enhancements/hooks/use-grid-columns.tsx - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return (
                  <SelectEditor
                    ref={editorRef}
                    className={className}
                    value={cellValue as IMultipleSelectCellValue}
          Severity: Major
          Found in packages/sdk/src/components/cell-value-editor/CellEditorMain.tsx - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                    if (linearRow.type !== LinearRowType.Group) return;
            Severity: Major
            Found in packages/sdk/src/components/grid/InteractionLayer.tsx - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                          return {
                            type: CellType.User,
                            data: data,
                          };

                Avoid too many return statements within this function.
                Open

                              return {
                                ...baseCellProps,
                                type: CellType.Text,
                                data: (cellValue as string) || '',
                                displayData,
                Severity: Major
                Found in packages/sdk/src/components/grid-enhancements/hooks/use-grid-columns.tsx - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        return (
                          <DateEditor
                            ref={editorRef}
                            className={className}
                            options={options as IDateFieldOptions}
                  Severity: Major
                  Found in packages/sdk/src/components/cell-value-editor/CellEditorMain.tsx - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return InputComponent;

                      Avoid too many return statements within this function.
                      Open

                                  return {
                                    type: CellType.Boolean,
                                    data: (cellValue as boolean) || false,
                                    isMultiple,
                                    contentAlign: 'left',

                        Avoid too many return statements within this function.
                        Open

                                      return {
                                        ...baseCellProps,
                                        type: CellType.Text,
                                        data: (cellValue as string) || '',
                                        displayData: field.cellValue2String(cellValue),
                        Severity: Major
                        Found in packages/sdk/src/components/grid-enhancements/hooks/use-grid-columns.tsx - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                        return {
                                          ...baseCellProps,
                                          type: CellType.Chart,
                                          data: cellValue as number[],
                                          displayData: cellValue.map((v) => field.item2String(v)),
                          Severity: Major
                          Found in packages/sdk/src/components/grid-enhancements/hooks/use-grid-columns.tsx - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                          return {
                                            type: CellType.Chart,
                                            data: cellValue as number[],
                                            displayData: cellValue.map((v) => field.item2String(v)),
                                            chartType: showAs.type as unknown as ChartType,

                              Avoid too many return statements within this function.
                              Open

                                          return {
                                            type: CellType.Select,
                                            data,
                                            displayData: data,
                                            choiceSorted: field.options.choices,

                                Avoid too many return statements within this function.
                                Open

                                            return {
                                              type: CellType.Rating,
                                              data: (cellValue as number) || 0,
                                              icon,
                                              color: ColorUtils.getHexForColor(color),

                                  Avoid too many return statements within this function.
                                  Open

                                              return { type: CellType.Loading };

                                    Avoid too many return statements within this function.
                                    Open

                                                return {
                                                  ...baseCellProps,
                                                  type: CellType.Text,
                                                  data: (cellValue as string) || '',
                                                  displayData,
                                    Severity: Major
                                    Found in packages/sdk/src/components/grid-enhancements/hooks/use-grid-columns.tsx - About 30 mins to fix

                                      Avoid too many return statements within this function.
                                      Open

                                                  return {
                                                    ...baseCellProps,
                                                    type: CellType.User,
                                                    data: data,
                                                    customEditor: (props, editorRef) => (
                                      Severity: Major
                                      Found in packages/sdk/src/components/grid-enhancements/hooks/use-grid-columns.tsx - About 30 mins to fix

                                        Avoid too many return statements within this function.
                                        Open

                                              return (
                                                <SelectEditor
                                                  ref={editorRef}
                                                  className={className}
                                                  value={cellValue as ISingleSelectCellValue}
                                        Severity: Major
                                        Found in packages/sdk/src/components/cell-value-editor/CellEditorMain.tsx - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language