AxeRicin/frontend-project-46

View on GitHub
src/formatters/getStylishFormat.js

Summary

Maintainability
A
0 mins
Test Coverage
A
95%

Showing 0 of 6 total issues

Similar blocks of code found in 4 locations. Consider refactoring.
Wontfix

case 'nested':
return `${getIndentedShift0(depth)}${node.key}: ${getStylishFormat(node.value, depth + 1)}`;
Severity: Major
Found in src/formatters/getStylishFormat.js and 3 other locations - About 30 mins to fix
src/formatters/getStylishFormat.js on lines 25..26
src/formatters/getStylishFormat.js on lines 27..28
src/formatters/getStylishFormat.js on lines 34..35

Similar blocks of code found in 4 locations. Consider refactoring.
Wontfix

case 'unchanged':
return `${getIndentedShift0(depth)}${node.key}: ${stringify(node.value, depth + 1)}`;
Severity: Major
Found in src/formatters/getStylishFormat.js and 3 other locations - About 30 mins to fix
src/formatters/getStylishFormat.js on lines 23..24
src/formatters/getStylishFormat.js on lines 25..26
src/formatters/getStylishFormat.js on lines 27..28

Similar blocks of code found in 2 locations. Consider refactoring.
Wontfix

const add = `\n${getIndentedShift2(depth)}+ ${node.key}: ${stringify(node.newValue, depth + 1)}`;
Severity: Minor
Found in src/formatters/getStylishFormat.js and 1 other location - About 30 mins to fix
src/formatters/getStylishFormat.js on lines 30..30

Similar blocks of code found in 4 locations. Consider refactoring.
Wontfix

case 'deleted':
return `${getIndentedShift2(depth)}- ${node.key}: ${stringify(node.value, depth + 1)}`;
Severity: Major
Found in src/formatters/getStylishFormat.js and 3 other locations - About 30 mins to fix
src/formatters/getStylishFormat.js on lines 23..24
src/formatters/getStylishFormat.js on lines 27..28
src/formatters/getStylishFormat.js on lines 34..35

Similar blocks of code found in 4 locations. Consider refactoring.
Wontfix

case 'added':
return `${getIndentedShift2(depth)}+ ${node.key}: ${stringify(node.value, depth + 1)}`;
Severity: Major
Found in src/formatters/getStylishFormat.js and 3 other locations - About 30 mins to fix
src/formatters/getStylishFormat.js on lines 23..24
src/formatters/getStylishFormat.js on lines 25..26
src/formatters/getStylishFormat.js on lines 34..35

Similar blocks of code found in 2 locations. Consider refactoring.
Wontfix

const del = `${getIndentedShift2(depth)}- ${node.key}: ${stringify(node.oldValue, depth + 1)}`;
Severity: Minor
Found in src/formatters/getStylishFormat.js and 1 other location - About 30 mins to fix
src/formatters/getStylishFormat.js on lines 31..31

There are no issues that match your filters.

Category
Status