TelescopeJS/Telescope

View on GitHub
src/server/headless.js

Summary

Maintainability
A
1 hr
Test Coverage

Function saveImg has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

async function saveImg(url, key, options = {}) {
  const browser = await puppeteer.launch({ timeout: 100000, args: ['--no-sandbox', '--disable-setuid-sandbox'] })
  const page = await browser.newPage()
  await page.goto(url, { waitUntil: 'networkidle2', timeout: 100000 })
  // await page.waitFor('img')
Severity: Minor
Found in src/server/headless.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status