DavideViolante/socialblade-com-api

View on GitHub

Showing 1 of 1 total issue

Function convertArrayToObject has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function convertArrayToObject(source, arrays) {
  return arrays.map((array) => {
    const [col1, col2, col3, col4, col5, col6, col7, col8, col9] = array;
    let parsed;
    switch (source) {
Severity: Major
Found in functions.js - About 2 hrs to fix
    Severity
    Category
    Status
    Source
    Language