Showing 278 of 361 total issues
Avoid deeply nested control flow statements. Open
Open
if (search.lineObj == line && /div/i.test(search.nodeName)) { reuse = search; break; }
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
switch(selectedCharacter){
case '<CR>':
selectedCharacter='\n';
break;
case '<Space>':
Avoid deeply nested control flow statements. Open
Open
if (!m.atomic) continue;
Avoid deeply nested control flow statements. Open
Open
if (sameLine) (first || (first = [])).push(span);
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
for (++j; j < i && countsAsNum.test(types[j]); ++j) {}
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 (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 (mayClear) {
signal(m, "beforeCursorEnter");
if (m.explicitlyCleared) {
if (!line.markedSpans) break;
else {--i; continue;}
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 (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 (/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 (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 (m.title && !title) title = m.title;
Avoid deeply nested control flow statements. Open
Open
while (pos != stop && regexps[i].test(line.charAt(pos))) {
pos += dir;
}
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 (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";
}