Showing 218 of 289 total issues
Avoid deeply nested control flow statements. Open
Open
if (!p) {
var T = M > L ? m.slice(0, L - f) : m
t.addToken(
t,
T,
Avoid deeply nested control flow statements. Open
Open
if (h[f].node == p) {
e.display.currentWheelTarget = p
break e
}
Avoid deeply nested control flow statements. Open
Open
for (var s = 0; s < i.electricChars.length; s++)
if (t.indexOf(i.electricChars.charAt(s)) > -1) {
a = indentLine(e, o.head.line, "smart")
break
}
Avoid deeply nested control flow statements. Open
Open
for (var S = 0; S < b.length; S += 2)
b[S + 1] == v && (c += " " + b[S])
Avoid deeply nested control flow statements. Open
Open
for (var k = 0; k < y.length; ++k)
buildCollapsedSpan(t, 0, y[k])
Avoid deeply nested control flow statements. Open
Open
if (
((r < 0 ? l.inclusiveRight : l.inclusiveLeft) &&
(c = movePos(e, c, -r, c && c.line == t.line ? i : null)),
c &&
c.line == t.line &&
Avoid deeply nested control flow statements. Open
Open
for (++z; z < E && a.test(c[z]); ++z);
Avoid deeply nested control flow statements. Open
Open
if (i[c].marker == l.marker) continue e
Avoid deeply nested control flow statements. Open
Open
if (
!t.options.allowDropFileTypes ||
-1 != indexOf(t.options.allowDropFileTypes, e.type)
) {
var a = new FileReader()
Avoid deeply nested control flow statements. Open
Open
if (i.markedSpans) {
--a
continue
}
Avoid deeply nested control flow statements. Open
Open
if (s) for (var l = 0; l < s.length; l++) s[l].style.left = i
Avoid deeply nested control flow statements. Open
Open
for (var d in c)
(u = d.match(/^spans_(\d+)$/)) &&
indexOf(t, Number(u[1])) > -1 &&
((lst(s)[d] = c[d]), delete c[d])
Avoid deeply nested control flow statements. Open
Open
if (i && !o) {
++a
break
}
Avoid deeply nested control flow statements. Open
Open
if (
(t.state.draggingText &&
!t.state.draggingText.copy &&
(d = t.listSelections()),
setSelectionNoUndo(t.doc, simpleSelection(n, n)),
Avoid deeply nested control flow statements. Open
Open
if (M >= L) {
;(m = m.slice(L - f)), (f = L)
break
}
Consider simplifying this complex logical expression. Open
Open
if (t) {
var o = this.getHelper(e, "wordChars")
;("before" != e.sticky && r != t.length) || !n ? ++r : --n
for (
var i = t.charAt(n),
Consider simplifying this complex logical expression. Open
Open
if (0 != cmp(a, d)) {
;(e.curOp.focus = activeElt()), extendTo(a)
var s = visibleLines(o, i)
;(a.line >= s.to || a.line < s.from) &&
setTimeout(
Consider simplifying this complex logical expression. Open
Open
if (
(0 == r.ch &&
r.line > e.firstLine() &&
(r = Pos(r.line - 1, getLine(e.doc, r.line - 1).length)),
o.ch == getLine(e.doc, o.line).text.length &&
Consider simplifying this complex logical expression. Open
Open
if (
((r = e[c + 2]),
s == l && n == (r.insertLeft ? "left" : "right") && (a = n),
"left" == n && 0 == o)
)
Consider simplifying this complex logical expression. Open
Open
if (i.empty())
i.head.line > r &&
(indentLine(t, i.head.line, e, !0),
(r = i.head.line),
o == t.doc.sel.primIndex && ensureCursorVisible(t))