teableio/teable

View on GitHub

Showing 671 of 671 total issues

Avoid too many return statements within this function.
Open

    return FileVideo;
Severity: Major
Found in packages/ui-lib/src/base/file/preview/getFileIcon.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

              return onCollapsedGroupChanged?.(new Set([id]));
    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.Text,
                      data: (cellValue as string) || emptyStr,
                      displayData: (cellValue as string) || emptyStr,
                    };

        Avoid too many return statements within this function.
        Open

                    return {
                      ...baseCellProps,
                      type: CellType.Number,
                      data: cellValue as number,
                      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.Select,
                        data,
                        displayData: data,
          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 FilePresentation;
            Severity: Major
            Found in packages/ui-lib/src/base/file/preview/getFileIcon.ts - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  return FileText;
              Severity: Major
              Found in packages/ui-lib/src/base/file/preview/getFileIcon.ts - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                      return <FilterUserSelect {...props} />;

                  Avoid too many return statements within this function.
                  Open

                              return {
                                type: CellType.Text,
                                data: (cellValue as string) || emptyStr,
                                displayData: field.cellValue2String(cellValue),
                                isWrap: true,

                    Avoid too many return statements within this function.
                    Open

                                    return {
                                      type: CellType.Link,
                                      data: cellValue ? (Array.isArray(cellValue) ? cellValue : [cellValue]) : [],
                                      displayData: field.cellValue2String(cellValue),
                                    };

                      Avoid too many return statements within this function.
                      Open

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

                        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 setCursor('not-allowed');
                          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.Text,
                                          data: (cellValue as string) || emptyStr,
                                          displayData,
                                        };

                              Avoid too many return statements within this function.
                              Open

                                            return {
                                              type: CellType.Number,
                                              data: cellValue as number,
                                              displayData: field.cellValue2String(cellValue),
                                              contentAlign: 'left',

                                Avoid too many return statements within this function.
                                Open

                                      return <QueryFilter value={query.where} onChange={(where) => onChange('where', where)} />;
                                Severity: Major
                                Found in packages/sdk/src/components/base-query/QueryEditor.tsx - About 30 mins to fix

                                  Avoid too many return statements within this function.
                                  Open

                                            return setCursor('not-allowed');
                                  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.Loading };
                                    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 (
                                              <UserEditor
                                                className={className}
                                                value={cellValue as IUserCellValue | IUserCellValue[]}
                                                options={options as IUserFieldOptions}
                                      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 (
                                                <QueryOrder
                                                  value={query.orderBy}
                                                  onChange={(orderBy) => {
                                                    onChange('orderBy', orderBy);
                                        Severity: Major
                                        Found in packages/sdk/src/components/base-query/QueryEditor.tsx - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language