Showing 278 of 361 total issues
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) {}
Function yank
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
yank: function(cm, operatorArgs, _vim, curStart, curEnd, curOriginal) {
Avoid deeply nested control flow statements. Open
Open
if (selectionEnd.line > lastLine) {
selectionEnd.line = lastLine;
}
Avoid deeply nested control flow statements. Open
Open
if (wordStart == cur.ch && lineNum == cur.line &&
wordEnd == wordStart + dir) {
// We started at the end of a word. Find the next one.
continue;
} else {
Avoid deeply nested control flow statements. Open
Open
if (posEq(newPos, curPos)) {
newPos.ch += dir;
if (newPos.ch < 0) {
if (newPos.line > doc.first) newPos = clipPos(doc, Pos(newPos.line - 1));
else newPos = null;
Avoid deeply nested control flow statements. Open
Open
if (oldCur[k].marker == span.marker) continue spans;
Avoid deeply nested control flow statements. Open
Open
if (widgets) for (var i = 0; i < widgets.length; ++i)
widgets[i].height = widgets[i].node.offsetHeight;
Avoid deeply nested control flow statements. Open
Open
if (newGroup) for (var prop in change) if (m = prop.match(/^spans_(\d+)$/)) {
if (indexOf(newGroup, Number(m[1])) > -1) {
lst(newChanges)[prop] = change[prop];
delete change[prop];
}
Avoid deeply nested control flow statements. Open
Open
if (pos < j) order.splice(at, 0, {from: pos, to: j, level: 1});
Avoid deeply nested control flow statements. Open
Open
if (stream.eat(/[\<\>]/)) {
stream.eat(/[\<\>]/);
return "atom";
}