mgurbanzade/gendiff

View on GitHub

Showing 2 of 7 total issues

Function runTests has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  const runTests = (firstFileName, secondFileName, expectedFileName, format = 'graphical') => {
    describe(`with ${format} output format`, () => {
      test.each(['.json', '.yml', '.ini'])(
        'with extensions of %s', (i) => {
          const firstFilePath = findFixture(`${firstFileName}${i}`);
Severity: Minor
Found in __tests__/index.test.js - About 1 hr to fix

    Avoid too many return statements within this function.
    Open

        return [...acc, buildNode('removed', key, dataObjVal1, null)];
    Severity: Major
    Found in src/astBuilder.js - About 30 mins to fix
      Severity
      Category
      Status
      Source
      Language