Showing 2 of 2 total issues

Function getDims has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const getDims = (imageUrls, callback) => {
  const totalLinks = imageUrls.length;
  if (totalLinks === 0) {
    setTimeout(() => callback([]), 0);
  } else {
Severity: Minor
Found in src/imageDims.js - About 1 hr to fix

    Function parseHtml has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    const parseHtml = (html, callback) => {
      const parseRules = createParseRules();
      const tagStack = [{text: "<!doctype html>"}];
      const parser = new htmlparser.Parser({
        onopentag: (name, attribs) => {
    Severity: Minor
    Found in src/ampl.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language