Showing 26 of 41 total issues
Avoid deeply nested control flow statements. Open
Open
switch (titleContents) {
case 'Announcements':
rowClass = ' announcement-topic';
topicsContent += '<div class="topic-title-row">' + this.config.announcementsDefault + '</div>';
break;
Avoid deeply nested control flow statements. Open
Open
if (postLinks[l].href.indexOf('act=Post&CODE=08') !== -1) {
// ... attach an event listener.
postLinks[l].addEventListener('click', function(event) {
event.preventDefault();
Avoid deeply nested control flow statements. Open
Open
if (child.nodeType === 1 && child.tagName === 'TD') {
if (child.parentNode.parentNode.parentNode === table) {
cells.push(child);
}
}
Avoid deeply nested control flow statements. Open
Open
if (!topicTitle.getAttribute('title')) {
topicTitle = cells[2].getElementsByTagName('a')[1];
}
Avoid deeply nested control flow statements. Open
Open
if (topicSpans[0].textContent.indexOf('(Pages ') !== -1) {
this.setValue('pagination', topicSpans[0].innerHTML);
this.setValue('topicDescription', topicSpans[1].textContent);
} else {
this.setValue('pagination', this.config.paginationDefault);
Function createEditForm
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
$cs.module.Posts.prototype.createEditForm = function(forumId, topicId, postId, pageId, response, contentContainer) {