teableio/teable

View on GitHub

Showing 671 of 671 total issues

Avoid too many return statements within this function.
Open

  return String(cellValue);
Severity: Major
Found in packages/core/src/models/field/formatting/number.ts - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

            return onCollapsedGroupChanged?.(new Set([...collapsedGroupIds, 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.Boolean,
                      data: (cellValue as boolean) || false,
                      isMultiple,
                    };

        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.Rating,
                        data: (cellValue as number) || 0,
                        icon,
          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 FileAudio;
            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 {
                            type: CellType.Image,
                            data,
                            displayData,
                          };

                Avoid too many return statements within this function.
                Open

                                return {
                                  ...baseCellProps,
                                  type: CellType.Link,
                                  data: cellValue ? (Array.isArray(cellValue) ? cellValue : [cellValue]) : [],
                                  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.Number,
                                data: cellValue as number,
                                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 (
                            // Setting the checkbox size is affected by the font-size causing the height to change.
                            <div style={{ fontSize: 0 }}>
                              <CheckboxEditor
                                className={className}
                    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 {
                              ...state,
                              extra: action.extra,
                            };
                      Severity: Major
                      Found in packages/sdk/src/context/use-instances/reducer.ts - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                            return FilePack;
                        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;
                          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.Number,
                                          data: cellValue as number,
                                          displayData:
                                            isMultiple && Array.isArray(cellValue)

                              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 <FilterCheckbox value={value as boolean} onChange={onSelect} className="w-10" />;

                                  Avoid too many return statements within this function.
                                  Open

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

                                    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 (
                                              <Input
                                                className="h-7 w-16 text-[13px]"
                                                type="number"
                                                value={query[type]}
                                      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 FileUnknown;
                                        Severity: Major
                                        Found in packages/ui-lib/src/base/file/preview/getFileIcon.ts - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language