Showing 259 of 373 total issues
Consider simplifying this complex logical expression. Open
Open
if (
((n = e[c + 2]),
a == l && r == (n.insertLeft ? "left" : "right") && (s = r),
"left" == r && 0 == o)
)
Consider simplifying this complex logical expression. Open
Open
if ('"' == r || "'" == r)
return (
(t.tokenize = (function tokenString(e) {
return function(t, r) {
var n,
Consider simplifying this complex logical expression. Open
Open
if (0 != cmp(s, d)) {
;(e.curOp.focus = activeElt()),
extendTo(s)
var a = visibleLines(o, i)
;(s.line >= a.to ||
Consider simplifying this complex logical expression. Open
Open
if (
((n < 0 ? l.inclusiveRight : l.inclusiveLeft) &&
(c = movePos(e, c, -n, c && c.line == t.line ? i : null)),
c &&
c.line == t.line &&
Consider simplifying this complex logical expression. Open
Open
if (
!(
eventInWidget(this.display, e) ||
signalDOMEvent(this, e) ||
(e.ctrlKey && !e.altKey) ||
Consider simplifying this complex logical expression. Open
Open
if ((!c || d || h || (h = "s"), l && l != h)) {
r < 0 && ((r = 1), moveOnce(), (t.sticky = "after"))
break
}
Consider simplifying this complex logical expression. Open
Open
if (o.empty())
o.head.line > r &&
(indentLine(this, o.head.line, e, !0),
(r = o.head.line),
n == this.doc.sel.primIndex && ensureCursorVisible(this))
Consider simplifying this complex logical expression. Open
Open
if (!t.styles || t.styles[0] != e.state.modeGen) {
var n = getContextBefore(e, lineNo(t)),
o =
t.text.length > e.options.maxHighlightLength &&
copyState(e.doc.mode, n.state),
Consider simplifying this complex logical expression. Open
Open
if (!s) {
if (
(this.props.defineMode &&
this.props.defineMode.name &&
this.props.defineMode.fn &&
Consider simplifying this complex logical expression. Open
Open
if (
e &&
e.activeElt &&
e.activeElt != activeElt() &&
(e.activeElt.focus(),
Consider simplifying this complex logical expression. Open
Open
else if (
!signalDOMEvent(e, t) &&
!eventInWidget(e.display, t) &&
(t.dataTransfer.setData("Text", e.getSelection()),
(t.dataTransfer.effectAllowed = "copyMove"),
Consider simplifying this complex logical expression. Open
Open
if ("word" == e) {
var n = t.current()
return (
r.context &&
r.context.tagName != n &&
Consider simplifying this complex logical expression. Open
Open
if (
!(
hasHandler(e, "beforeChange") ||
(e.cm && hasHandler(e.cm, "beforeChange"))
) ||
Consider simplifying this complex logical expression. Open
Open
if (
(0 == n.ch &&
n.line > e.firstLine() &&
(n = Pos(n.line - 1, getLine(e.doc, n.line - 1).length)),
o.ch == getLine(e.doc, o.line).text.length &&
Consider simplifying this complex logical expression. Open
Open
if (!s) {
if (
(this.props.defineMode &&
this.props.defineMode.name &&
this.props.defineMode.fn &&
Consider simplifying this complex logical expression. Open
Open
if (r)
for (var n = 0; n < r.length; ++n) {
var o = r[n]
;(null == o.from || o.from <= e.ch) &&
(null == o.to || o.to >= e.ch) &&
Consider simplifying this complex logical expression. Open
Open
if (
(o =
s && a < 9 && 0 == c && u == i.coverEnd - i.coverStart
? l.parentNode.getBoundingClientRect()
: getUsefulRect(L(l, c, u).getClientRects(), n))
Consider simplifying this complex logical expression. Open
Open
if (
!a &&
0 == c &&
!t.force &&
r.renderedView == r.view &&
Consider simplifying this complex logical expression. Open
Open
else if ("above" == n || "near" == n) {
var l = Math.max(i.wrapper.clientHeight, this.doc.height),
c = Math.max(i.sizer.clientWidth, i.lineSpace.clientWidth)
;("above" == n || e.bottom + t.offsetHeight > l) &&
e.top > t.offsetHeight
Function skipAtomicInner
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function skipAtomicInner(e, t, r, n, o) {