Showing 2 of 2 total issues
Function parseHtml
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const parseHtml = (html, callback) => {
const parseRules = createParseRules();
const tagStack = [{text: "<!doctype html>"}];
const parser = new htmlparser.Parser({
onopentag: (name, attribs) => {
Function getDims
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const getDims = (imageUrls, callback) => {
const totalLinks = imageUrls.length;
if (totalLinks === 0) {
setTimeout(() => callback([]), 0);
} else {