Showing 3 of 5 total issues
Function getData
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const getData = params => {
return new Promise((resolve, reject) => {
const paths = new Map([
['rut', '/rut'],
['name', '/buscar']
Function req
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const req = https.request(options, res => {
if (res.statusCode !== 200) {
reject(new Error(`Request Failed. Status Code: ${res.statusCode}`))
} else {
res.setEncoding('utf8')
Function data
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const data = Array.from($('table tbody tr')).map(el => {
const keys = new Map([
[
'person',
new Map([