pankod/refine

View on GitHub
packages/cli/src/components/update-warning-table/table.ts

Summary

Maintainability
A
3 hrs
Test Coverage

Function printUpdateWarningTable has 55 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const printUpdateWarningTable = async (
  params: UpdateWarningTableParams,
) => {
  const data = params?.data;
  const tableHead = Object.keys(data?.[0] || {});
Severity: Major
Found in packages/cli/src/components/update-warning-table/table.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/update-warning-table/table.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status