UnnamedHero/project-lvl3-s274

View on GitHub

Showing 1 of 1 total issue

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

const pageLoader = (targetUrl, destinationDir) => {
  log(`BEGIN with\n\turl: ${targetUrl}\n\tdirectory: ${destinationDir}`);
  const pageName = makeNameFromUrl(targetUrl);
  const htmlName = `${pageName}.html`;
  const htmlFilePath = path.join(destinationDir, htmlName);
Severity: Minor
Found in src/index.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language