pankod/refine

View on GitHub
packages/codemod/src/transformations/v4/metadata-to-meta.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function metaDataToMeta has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const metaDataToMeta = (j: JSCodeshift, source: Collection) => {
  // find all JSX elements
  source.find(j.JSXElement).forEach((path) => {
    const attributes = path.node.openingElement.attributes;
    if (!attributes) return;
Severity: Minor
Found in packages/codemod/src/transformations/v4/metadata-to-meta.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status