teableio/teable

View on GitHub
apps/nestjs-backend/test/sort.e2e-spec.ts

Summary

Maintainability
B
5 hrs
Test Coverage

File sort.e2e-spec.ts has 370 lines of code (exceeds 300 allowed). Consider refactoring.
Open

/* eslint-disable sonarjs/no-duplicate-string */
/* eslint-disable @typescript-eslint/no-explicit-any */
import type { INestApplication } from '@nestjs/common';
import type {
  IDateFieldOptions,
Severity: Minor
Found in apps/nestjs-backend/test/sort.e2e-spec.ts - About 3 hrs to fix

    Avoid too many return statements within this function.
    Open

            return (cellValue as any)[0];
    Severity: Major
    Found in apps/nestjs-backend/test/sort.e2e-spec.ts - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

              return formatDateToString(cellValue as string, (options as IDateFieldOptions).formatting);
      Severity: Major
      Found in apps/nestjs-backend/test/sort.e2e-spec.ts - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

                  return cellValue
                    .map((v) => formatDateToString(v, (options as IDateFieldOptions).formatting))
                    .join(', ');
        Severity: Major
        Found in apps/nestjs-backend/test/sort.e2e-spec.ts - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status