Showing 218 of 289 total issues
Consider simplifying this complex logical expression. Open
Open
if (!t.styles || t.styles[0] != e.state.modeGen) {
var r = getContextBefore(e, lineNo(t)),
o =
t.text.length > e.options.maxHighlightLength &&
copyState(e.doc.mode, r.state),
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 (
!(
eventInWidget(t.display, e) ||
signalDOMEvent(t, e) ||
(e.ctrlKey && !e.altKey) ||
Consider simplifying this complex logical expression. 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 &&
Consider simplifying this complex logical expression. Open
Open
if (
(o =
a && s < 9 && 0 == c && u == i.coverEnd - i.coverStart
? l.parentNode.getBoundingClientRect()
: getUsefulRect(w(l, c, u).getClientRects(), r)).left ||
Consider simplifying this complex logical expression. Open
Open
if (
!s &&
0 == l &&
!t.force &&
n.renderedView == n.view &&
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 (n)
for (var r = 0; r < n.length; ++r) {
var o = n[r]
;(null == o.from || o.from <= e.ch) &&
(null == o.to || o.to >= e.ch) &&
Consider simplifying this complex logical expression. Open
Open
if ((!c || d || h || (h = "s"), l && l != h)) {
n < 0 && ((n = 1), moveOnce(), (t.sticky = "after"))
break
}
Consider simplifying this complex logical expression. Open
Open
if (
(l && (f = window.scrollY),
r.input.focus(),
l && window.scrollTo(null, f),
r.input.reset(),
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 ("above" == r || "near" == r) {
var l = Math.max(i.wrapper.clientHeight, this.doc.height),
c = Math.max(i.sizer.clientWidth, i.lineSpace.clientWidth)
;("above" == r || e.bottom + t.offsetHeight > l) &&
e.top > t.offsetHeight
Consider simplifying this complex logical expression. Open
Open
if ("word" == e) {
var r = t.current()
return (
n.context &&
n.context.tagName != r &&
Consider simplifying this complex logical expression. Open
Open
if (a && s < 9 && !c && (!o || (!o.left && !o.right))) {
var f = l.parentNode.getClientRects()[0]
o = f
? {
left: f.left,
Consider simplifying this complex logical expression. Open
Open
if (!d || (e.which && !(e.which < 10)) || !handleKeyBinding(t, e)) {
var o = String.fromCharCode(null == r ? n : r)
"\b" != o &&
(handleCharBinding(t, e, o) || t.display.input.onKeyPress(e))
}
Function PosWithInfo
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function PosWithInfo(e, t, n, r, o) {
Function addWidget
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
addWidget: function(e, t, n, r, o) {
Function measureCharPrepared
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function measureCharPrepared(e, t, n, r, o) {
Function extendSelection
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function extendSelection(e, t, n, r, o) {
Function conflictingCollapsedRange
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function conflictingCollapsedRange(e, t, n, r, o) {