dopry/netlify-cms

View on GitHub
src/components/Widgets/Markdown/serializers/slateRemark.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function convertNode has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function convertNode(node, children, shortcodePlugins) {
  switch (node.type) {

    /**
     * General
Severity: Minor
Found in src/components/Widgets/Markdown/serializers/slateRemark.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

          return u(typeMap[node.type]);
    Severity: Major
    Found in src/components/Widgets/Markdown/serializers/slateRemark.js - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

            return u(typeMap[node.type], props, children);
      Severity: Major
      Found in src/components/Widgets/Markdown/serializers/slateRemark.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

              return u(typeMap[node.type], { url, title }, children);
        Severity: Major
        Found in src/components/Widgets/Markdown/serializers/slateRemark.js - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status