Murat72/frontend-project-46

View on GitHub

Showing 4 of 4 total issues

Function stylish has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const stylish = (tree) => {
  const iter = (node, depth) => {
    const lines = node.map((data) => {
      const {
        type, key, value, value1, value2, children,
Severity: Minor
Found in src/formatters/stylish.js - About 1 hr to fix

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

      const iter = (node, depth) => {
        const lines = node.map((data) => {
          const {
            type, key, value, value1, value2, children,
          } = data;
    Severity: Minor
    Found in src/formatters/stylish.js - About 1 hr to fix

      Avoid too many return statements within this function.
      Open

                return `${getIndent(depth)}  ${key}: ${stringify(value, depth + 1)}`;
      Severity: Major
      Found in src/formatters/stylish.js - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return { type: 'unchanged', key, value: data1[key] };
        Severity: Major
        Found in src/buildDiff.js - About 30 mins to fix
          Severity
          Category
          Status
          Source
          Language