pankod/refine

View on GitHub
packages/cli/src/transformers/integrations/ant-design.ts

Summary

Maintainability
B
5 hrs
Test Coverage

Function transformer has 116 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default async function transformer(file: FileInfo, api: API) {
  const j = api.jscodeshift;
  const source = j(file.source);

  const refineElement = source.find(j.JSXElement, {
Severity: Major
Found in packages/cli/src/transformers/integrations/ant-design.ts - About 4 hrs to fix

    Function addAntDesignImports has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export const addAntDesignImports = (j: JSCodeshift, source: Collection) => {
      addOrUpdateImports(
        j,
        source,
        "@refinedev/antd",
    Severity: Minor
    Found in packages/cli/src/transformers/integrations/ant-design.ts - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status