Showing 7 of 7 total issues
Function traverse
has 126 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
;(function traverse(object) {
for (let index in object) {
if (full && index.includes('-full')) {
const originalPropertyName = index.replace('-full', '')
Function object
has 106 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
object: () => {
if (
object[index].private
||
object[index].full && !full
Function load
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
window.load = function (link) {
var request = new XMLHttpRequest()
request.open('GET', link)
Avoid deeply nested control flow statements. Open
Open
if (hideEndDate)
object[index].endDate =
object[index].startDate
Avoid deeply nested control flow statements. Open
Open
if (period == '1 few seconds')
delete object[index].startDate
else
object[index].duration = period
Avoid deeply nested control flow statements. Open
Open
if (!hideEndDate)
object[index].endDate =
endDate.format(format)
Avoid deeply nested control flow statements. Open
Open
if (1 < years) {
years =
years.round(.5).toFixed(1)
.replace('.0', '')