UnnamedHero/project-lvl3-s274

View on GitHub
src/index.js

Summary

Maintainability
A
1 hr
Test Coverage

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

    There are no issues that match your filters.

    Category
    Status