Showing 200 of 200 total issues
Avoid deeply nested control flow statements. Open
Open
if (fallLectureCombo.founded === 1) {
return true;
}
Avoid deeply nested control flow statements. Open
Open
if (overlapExists(winterTimetable)) {
winterTimetable = createShallowCopyOfTimetable(
prevTimetable,
);
let j = -1;
Avoid deeply nested control flow statements. Open
Open
if (dayEvents[i].code === payload.code) {
dayEvents.splice(i, 1);
break;
}
Avoid deeply nested control flow statements. Open
Open
for (const lecture of course.lecture) {
if (lecture.sectionCode === section.slice(section.length - 5)) {
course.lecture = [lecture];
}
}
Avoid deeply nested control flow statements. Open
Open
if (winterLectureCombo.founded === 1) {
return true;
}
Avoid deeply nested control flow statements. Open
Open
if (tut2 !== -1) {
return courseSection[whichArray2].tutorial.some(
arrayElement2 => {
// Recursive case...
if (fallLectureCombo.founded === 1) {
Avoid deeply nested control flow statements. Open
Open
for (const tutorial of course.tutorial) {
if (tutorial.sectionCode === section.slice(section.length - 5)) {
course.tutorial = [tutorial];
}
}
Avoid deeply nested control flow statements. Open
Open
if (tutResult) {
winterLectureCombo.founded = 1;
// founds a valid timetable
return true;
} else {
Avoid deeply nested control flow statements. Open
Open
for (const lecture of course.lecture) {
if (lecture.sectionCode === section.slice(section.length - 5)) {
course.lecture = [lecture];
}
}
Avoid deeply nested control flow statements. Open
Open
for (const practical of course.practical) {
if (practical.sectionCode === section.slice(section.length - 5)) {
course.practical = [practical];
}
}
Avoid deeply nested control flow statements. Open
Open
if (fallLectureCombo.founded === 1) {
return true;
}
Avoid deeply nested control flow statements. Open
Open
if (
section.comboCode.charAt(section.comboCode.length - 6) === 'Y'
) {
yearLocked.push(section.comboCode);
}
Avoid deeply nested control flow statements. Open
Open
for (const practical of course.practical) {
if (practical.sectionCode === section.slice(section.length - 5)) {
course.practical = [practical];
}
}
Avoid deeply nested control flow statements. Open
Open
if (winterLectureCombo.founded === 1) {
return true;
}
Avoid deeply nested control flow statements. Open
Open
if (winterPracticalCombo.founded === 1) {
return true;
}
Avoid deeply nested control flow statements. Open
Open
if (tutResult) {
fallLectureCombo.founded = 1;
// founds a valid timetable
return true;
} else {
Avoid deeply nested control flow statements. Open
Open
if (section[section.length - 3] === 'L') {
for (const lecture of course.lecture) {
if (lecture.sectionCode === section.slice(section.length - 3)) {
course.lecture = [lecture];
}
Avoid deeply nested control flow statements. Open
Open
for (const section of tempList) {
if (
section.comboCode.charAt(section.comboCode.length - 6) === 'Y'
) {
yearLocked.push(section.comboCode);
Avoid deeply nested control flow statements. Open
Open
if (dayEvents[i].code === payload.code) {
dayEvents.splice(i, 1);
break;
}
Avoid deeply nested control flow statements. Open
Open
if (section[section.length - 3] === 'L') {
for (const lecture of course.lecture) {
if (lecture.sectionCode === section.slice(section.length - 3)) {
course.lecture = [lecture];
}