teableio/teable

View on GitHub

Showing 671 of 671 total issues

Avoid too many return statements within this function.
Open

    return {
      type: RegionType.ColumnHeader,
      x: startOffsetX,
      y: 0,
      width,
Severity: Major
Found in packages/sdk/src/components/grid/utils/region.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

            return {
              type: CellRegionType.Preview,
              data: (data[realIndex] as { id: string; title: string })?.id,
            };

      Avoid too many return statements within this function.
      Open

              return (
                <CellDate
                  value={value as string}
                  formatting={options.formatting as IDatetimeFormatting}
                  className={className}
      Severity: Major
      Found in packages/sdk/src/components/cell-value/CellValue.tsx - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return token;
        Severity: Major
        Found in plugins/src/app/api/backend.ts - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                return `${bytesToMB(value as number)}MB`;
          Severity: Major
          Found in packages/sdk/src/utils/statistic.ts - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                  return (
                    <CellDate value={value as string} formatting={options.formatting} className={className} />
                  );
            Severity: Major
            Found in packages/sdk/src/components/cell-value/CellValue.tsx - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return new Date(cellValue as string).toISOString();
              Severity: Major
              Found in plugins/src/app/sheet-form-view/components/sheet/PreviewPanel.tsx - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                        return cellValue;
                Severity: Major
                Found in plugins/src/app/sheet-form-view/components/sheet/PreviewPanel.tsx - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                        return (
                          <CellRating
                            value={value as number}
                            options={options as IRatingFieldOptions}
                            className={className}
                  Severity: Major
                  Found in packages/sdk/src/components/cell-value/CellValue.tsx - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                          return onChange?.(newValues);
                    Severity: Major
                    Found in packages/sdk/src/components/editor/link/LinkList.tsx - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                          return { type: CellRegionType.Blank };

                        Avoid too many return statements within this function.
                        Open

                          return (
                            <ChartProvider
                              storage={pluginInstall?.storage as unknown as IChartStorage}
                              uiConfig={{
                                ...uiConfig,
                        Severity: Major
                        Found in plugins/src/app/chart/components/Pages.tsx - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                                return (
                                  <CellUser
                                    value={value as IUserCellValue | IUserCellValue[]}
                                    className={className}
                                    itemClassName={itemClassName}
                          Severity: Major
                          Found in packages/sdk/src/components/cell-value/CellValue.tsx - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                  return (
                                    <CellAttachment
                                      value={value as IAttachmentCellValue}
                                      className={className}
                                      itemClassName={itemClassName}
                            Severity: Major
                            Found in packages/sdk/src/components/cell-value/CellValue.tsx - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                    return (
                                      <CellLink
                                        value={value as ILinkCellValue | ILinkCellValue[]}
                                        className={className}
                                        itemClassName={itemClassName}
                              Severity: Major
                              Found in packages/sdk/src/components/cell-value/CellValue.tsx - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                  return Response.json({
                                    accessToken: res.data.accessToken,
                                  });
                                Severity: Major
                                Found in plugins/src/app/api/plugin/getToken/route.ts - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                          return setCursor('pointer');
                                  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 setCursor('grabbing');
                                    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 onCollapsedGroupChanged?.(newCollapsedGroupIds);
                                      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 (
                                                <AttachmentEditor
                                                  className={className}
                                                  value={cellValue as IAttachmentCellValue}
                                                  onChange={onChange}
                                        Severity: Major
                                        Found in packages/sdk/src/components/cell-value-editor/CellEditorMain.tsx - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language