Nastya-1000/project-lvl3-s418

View on GitHub

Showing 1 of 1 total issue

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

const pageLoader = (pageURL, pathToMainDir) => {
  logDebug(`Page URL - ${pageURL}`);
  const nameOfFileForPage = makeFileOrDirNameByLink(pageURL, 'fileForPage');
  const pathToFileForPage = makePathToFileOrDir(pathToMainDir, nameOfFileForPage);
  logDebug(`Path to file for content of page - ${pathToFileForPage}`);
Severity: Minor
Found in src/index.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language