Showing 3 of 20 total issues
Function preprocess
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const preprocess = function (data) {
let lookup = []
let words = []
let expanded = []
let useLookup = false
Function preprocess
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var preprocess = function preprocess(data) {
var lookup = [];
var words = [];
var expanded = [];
var useLookup = false;
Function resultTree
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
let resultTree = tree.map((item) => {
if (!(provinces.find(prov => prov === item.province))) {
provinces.push(item.province)
console.log(item.province + ' ------- Done !')
let prov = tree.filter(data => data.province === item.province)