pankod/refine

View on GitHub
packages/cli/src/components/version-table/index.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function getVersionTable has 65 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const getVersionTable = (
  packages: RefinePackageInstalledVersionData[] = [],
) => {
  const tableHead = Object.keys(packages?.[0] || {});
  if (!packages || !tableHead.length) return { table: "", width: 0 };
Severity: Major
Found in packages/cli/src/components/version-table/index.ts - About 2 hrs to fix

    Function getColorsByVersionDiffrence has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const getColorsByVersionDiffrence = (
      installedVersion: ReturnType<typeof parseVersions>,
      nextVersion: ReturnType<typeof parseVersions>,
    ) => {
      const isMajorDiffrence =
    Severity: Minor
    Found in packages/cli/src/components/version-table/index.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status