Showing 361 of 361 total issues
Avoid deeply nested control flow statements. Open
Open
if (mayClear) {
signal(m, "beforeCursorEnter");
if (m.explicitlyCleared) {
if (!line.markedSpans) break;
else {--i; continue;}
Function swapcase
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
swapcase: function(cm, operatorArgs, _vim, curStart, curEnd, curOriginal) {
Avoid deeply nested control flow statements. Open
Open
if (m.startStyle && sp.from == pos) spanStartStyle += " " + m.startStyle;
Avoid deeply nested control flow statements. Open
Open
if (m.title && !title) title = m.title;
Avoid deeply nested control flow statements. Open
Open
if (m.className) spanStyle += " " + m.className;
Avoid deeply nested control flow statements. Open
Open
if (!m.atomic) continue;
Avoid deeply nested control flow statements. Open
Open
if (m.endStyle && sp.to == nextChange) spanEndStyle += " " + m.endStyle;
Avoid deeply nested control flow statements. Open
Open
if (m.collapsed && (!collapsed || collapsed.marker.size < m.size))
collapsed = sp;
Avoid deeply nested control flow statements. Open
Open
while (pos != stop && regexps[i].test(line.charAt(pos))) {
pos += dir;
}
Function buildToken
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function buildToken(builder, text, style, startStyle, endStyle, title) {
Avoid deeply nested control flow statements. Open
Open
if (widget.node == n.firstChild) {
if (!widget.above && !insertBefore) insertBefore = n;
positionLineWidget(widget, n, reuse, dims);
++widgetsSeen;
break;
Avoid deeply nested control flow statements. Open
Open
switch(selectedCharacter){
case '<CR>':
selectedCharacter='\n';
break;
case '<Space>':
Avoid deeply nested control flow statements. Open
Open
if (search.lineObj == line && /div/i.test(search.nodeName)) { reuse = search; break; }
Function runMode
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function runMode(cm, text, mode, state, f, forceToEnd) {
Avoid deeply nested control flow statements. Open
Open
} else if (sp.from > pos && nextChange > sp.from) {
nextChange = sp.from;
}
Avoid deeply nested control flow statements. Open
Open
if (/pre/i.test(prev.nodeName)) {
var wrap = elt("div", null, null, "position: relative");
prev.parentNode.replaceChild(wrap, prev);
wrap.appendChild(prev);
prev = wrap;
Avoid deeply nested control flow statements. Open
Open
if (!w.handleMouseEvents) wnode.ignoreEvents = true;
Avoid deeply nested control flow statements. Open
Open
if (sp.to != null && nextChange > sp.to) { nextChange = sp.to; spanEndStyle = ""; }
Avoid deeply nested control flow statements. Open
Open
if (sameLine) (first || (first = [])).push(span);
Avoid deeply nested control flow statements. Open
Open
for (++j; j < i && countsAsNum.test(types[j]); ++j) {}